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

Unified Diff: components/copresence/public/copresence_constants.h

Issue 419073002: Add the copresence DirectiveHandler. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 4 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
Index: components/copresence/public/copresence_constants.h
diff --git a/components/copresence/public/copresence_constants.h b/components/copresence/public/copresence_constants.h
new file mode 100644
index 0000000000000000000000000000000000000000..1c2499d7e5cb11d2b27e93b2a6f5f797384ad4ee
--- /dev/null
+++ b/components/copresence/public/copresence_constants.h
@@ -0,0 +1,32 @@
+// 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_PUBLIC_COPRESENCE_CONSTANTS_
+#define COMPONENTS_COPRESENCE_PUBLIC_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_PUBLIC_COPRESENCE_CONSTANTS_
« no previous file with comments | « components/copresence/mediums/audio/audio_recorder_unittest.cc ('k') | components/copresence/test/audio_test_support.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698