Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef COMPONENTS_COPRESENCE_PUBLIC_COPRESENCE_CONSTANTS_ | |
| 6 #define COMPONENTS_COPRESENCE_PUBLIC_COPRESENCE_CONSTANTS_ | |
| 7 | |
| 8 #include "media/base/channel_layout.h" | |
| 9 | |
| 10 namespace copresence { | |
| 11 | |
| 12 // Audio constants. Currently used from the AudioPlayer/AudioRecorder. | |
|
Daniel Erat
2014/07/31 22:31:16
does this really need to be in the public/ subdire
rkc
2014/08/01 21:08:57
They are shared by the whispernet implementation (
| |
| 13 // TODO(rkc): Make these values configurable then remove them from here. | |
| 14 // Number of repetitions of the audio token in one sequence of samples. | |
| 15 extern const int kDefaultRepetitions; | |
|
Daniel Erat
2014/07/31 22:31:16
add a blank line between this one and the next one
rkc
2014/08/01 21:08:57
Done.
| |
| 16 // The default sample rate. We need to ensure that both the recorder and the | |
| 17 // player on _all platforms use the same rate. | |
| 18 extern const float kDefaultSampleRate; | |
| 19 extern const int kDefaultBitsPerSample; | |
| 20 // 18500 for ultrasound, needs to be consistent between platforms. | |
| 21 extern const float kDefaultCarrierFrequency; | |
| 22 // The next two really need to be configurable since they don't need to be | |
| 23 // consistent across platforms, or even playing/recording. | |
| 24 extern const int kDefaultChannels; | |
| 25 extern const media::ChannelLayout kDefaultChannelLayout; | |
| 26 | |
| 27 } // namespace copresence | |
| 28 | |
| 29 #endif // COMPONENTS_COPRESENCE_PUBLIC_COPRESENCE_CONSTANTS_ | |
| OLD | NEW |