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

Side by Side Diff: components/copresence/public/copresence_constants.h

Issue 637223011: Redesign the copresence audio handlers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git/+/master
Patch Set: Created 6 years, 2 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef COMPONENTS_COPRESENCE_PUBLIC_COPRESENCE_CONSTANTS_ 5 #ifndef COMPONENTS_COPRESENCE_PUBLIC_COPRESENCE_CONSTANTS_
6 #define COMPONENTS_COPRESENCE_PUBLIC_COPRESENCE_CONSTANTS_ 6 #define COMPONENTS_COPRESENCE_PUBLIC_COPRESENCE_CONSTANTS_
7 7
8 #include "media/base/channel_layout.h" 8 #include "media/base/channel_layout.h"
9 9
10 namespace copresence { 10 namespace copresence {
11 11
12 // Audio constants. Currently used from the AudioPlayer/AudioRecorder. 12 // Audio constants. Currently used from the AudioPlayer/AudioRecorder.
13 // TODO(rkc): Make these values configurable then remove them from here. 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. 14 // Number of repetitions of the audio token in one sequence of samples.
15 extern const int kDefaultRepetitions; 15 extern const int kDefaultRepetitions;
16 16
17 // The default sample rate. We need to ensure that both the recorder and the 17 // The default sample rate. We need to ensure that both the recorder and the
18 // player on _all platforms use the same rate. 18 // player on _all platforms use the same rate.
19 extern const float kDefaultSampleRate; 19 extern const float kDefaultSampleRate;
20 extern const int kDefaultBitsPerSample; 20 extern const int kDefaultBitsPerSample;
21 21
22 // 18500 for ultrasound, needs to be consistent between platforms. 22 // 18500 for ultrasound, needs to be consistent between platforms.
23 extern const float kDefaultCarrierFrequency; 23 extern const float kDefaultCarrierFrequency;
24 24
25 // The next two really need to be configurable since they don't need to be 25 // The next two really need to be configurable since they don't need to be
26 // consistent across platforms, or even playing/recording. 26 // consistent across platforms, or even playing/recording.
27 extern const int kDefaultChannels; 27 extern const int kDefaultChannels;
28 extern const media::ChannelLayout kDefaultChannelLayout; 28 extern const media::ChannelLayout kDefaultChannelLayout;
29 29
30 // These constants are used from, everywhere.
Daniel Erat 2014/10/17 22:26:00 s/,//
rkc 2014/10/18 00:21:55 Done.
31 // Particularly, these are used to index the directive lists in the
32 // audio manager, so do not change these enums without changing
33 // audio_directive_list.[h|cc].
34 enum AudioType {
35 AUDIBLE = 0,
36 INAUDIBLE = 1,
37 BOTH = 2,
38 UNKNOWN = 3,
39 };
40
30 } // namespace copresence 41 } // namespace copresence
31 42
32 #endif // COMPONENTS_COPRESENCE_PUBLIC_COPRESENCE_CONSTANTS_ 43 #endif // COMPONENTS_COPRESENCE_PUBLIC_COPRESENCE_CONSTANTS_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698