| Index: components/copresence/common/copresence_constants.h
|
| diff --git a/components/copresence/common/copresence_constants.h b/components/copresence/common/copresence_constants.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..4d9cf3816f59c9858c73475596b4cdeaf43140d3
|
| --- /dev/null
|
| +++ b/components/copresence/common/copresence_constants.h
|
| @@ -0,0 +1,29 @@
|
| +// Copyright 2014 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_COPRESENCE_COMMON_COPRESENCE_CONSTANTS_
|
| +#define COMPONENTS_COPRESENCE_COMMON_COPRESENCE_CONSTANTS_
|
| +
|
| +#include "media/base/channel_layout.h"
|
| +
|
| +namespace copresence {
|
| +
|
| +// Audio constants. Currently used from the AudioPlayer/AudioRecorder.
|
| +// TODO(rkc): Make these values configurable then remove them from here.
|
| +// Number of repetitions of the audio token in one sequence of samples.
|
| +extern const int kDefaultRepetitions;
|
| +// The default sample rate. We need to ensure that both the recorder and the
|
| +// player on _all platforms use the same rate.
|
| +extern const float kDefaultSampleRate;
|
| +extern const int kDefaultBitsPerSample;
|
| +// 18500 for ultrasound, needs to be consistent between platforms.
|
| +extern const float kDefaultCarrierFrequency;
|
| +// The next two really need to be configurable since they don't need to be
|
| +// consistent across platforms, or even playing/recording.
|
| +extern const int kDefaultChannels;
|
| +extern const media::ChannelLayout kDefaultChannelLayout;
|
| +
|
| +} // namespace copresence
|
| +
|
| +#endif // COMPONENTS_COPRESENCE_COMMON_COPRESENCE_CONSTANTS_
|
|
|