Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(98)

Unified Diff: components/audio_modem/public/audio_modem_types.h

Issue 2131993002: Delete the audio modem and copresence private APIs. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@eol
Patch Set: Sync again Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « components/audio_modem/modem_unittest.cc ('k') | components/audio_modem/public/modem.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/audio_modem/public/audio_modem_types.h
diff --git a/components/audio_modem/public/audio_modem_types.h b/components/audio_modem/public/audio_modem_types.h
deleted file mode 100644
index 3ccf6888f04e9ee7d963d0c5c23cabc2da437f2e..0000000000000000000000000000000000000000
--- a/components/audio_modem/public/audio_modem_types.h
+++ /dev/null
@@ -1,75 +0,0 @@
-// Copyright 2015 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef COMPONENTS_AUDIO_MODEM_PUBLIC_AUDIO_MODEM_TYPES_H_
-#define COMPONENTS_AUDIO_MODEM_PUBLIC_AUDIO_MODEM_TYPES_H_
-
-#include <stddef.h>
-
-#include <string>
-#include <vector>
-
-#include "base/callback_forward.h"
-#include "base/memory/ref_counted.h"
-#include "media/base/channel_layout.h"
-
-// Various constants and types used for the audio modem.
-// TODO(ckehoe): Move the constants out into their own header.
-
-namespace audio_modem {
-
-// Number of repetitions of the audio token in one sequence of samples.
-extern const int kDefaultRepetitions;
-
-// Whispernet encoding parameters. These need to be the same on all platforms.
-extern const float kDefaultSampleRate;
-extern const int kDefaultBitsPerSample;
-extern const float kDefaultCarrierFrequency;
-
-// This really needs to be configurable since it doesn't need
-// to be consistent across platforms, or even playing/recording.
-extern const media::ChannelLayout kDefaultChannelLayout;
-
-// Enum to represent the audio band (audible vs. ultrasound).
-// AUDIBLE and INAUDIBLE are used as array indices.
-enum AudioType {
- AUDIBLE = 0,
- INAUDIBLE = 1,
- BOTH = 2,
- AUDIO_TYPE_UNKNOWN = 3,
-};
-
-// Struct representing an audio token.
-// TODO(ckehoe): Make this use the AudioType enum instead of a boolean.
-struct AudioToken final {
- AudioToken(const std::string& token, bool audible)
- : token(token),
- audible(audible) {}
-
- std::string token;
- bool audible;
-};
-
-// Struct to hold the encoding parameters for tokens.
-// Parity is on by default.
-struct TokenParameters {
- TokenParameters() : TokenParameters(0, false, true) {}
-
- explicit TokenParameters(size_t length)
- : TokenParameters(length, false, true) {}
-
- TokenParameters(size_t length, bool crc, bool parity)
- : length(length), crc(crc), parity(parity) {}
-
- size_t length;
- bool crc;
- bool parity;
-};
-
-// Callback to pass around found tokens.
-using TokensCallback = base::Callback<void(const std::vector<AudioToken>&)>;
-
-} // namespace audio_modem
-
-#endif // COMPONENTS_AUDIO_MODEM_PUBLIC_AUDIO_MODEM_TYPES_H_
« no previous file with comments | « components/audio_modem/modem_unittest.cc ('k') | components/audio_modem/public/modem.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698