Index: chromecast/media/base/converters.h |
diff --git a/chromecast/media/base/converters.h b/chromecast/media/base/converters.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..5544d0d26648f18aa2b6136e113114f1aa0b3d9d |
--- /dev/null |
+++ b/chromecast/media/base/converters.h |
@@ -0,0 +1,23 @@ |
+// 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 CHROMECAST_MEDIA_BASE_CONVERTERS_H_ |
+#define CHROMECAST_MEDIA_BASE_CONVERTERS_H_ |
+ |
+#include "chromecast/public/media/cast_audio_output_stream.h" |
+#include "media/audio/audio_parameters.h" |
+ |
+namespace chromecast { |
+namespace media { |
+ |
+// Converts ::media::AudioParameters to chromecast::media::AudioParameters. |
+AudioParameters FromChromiumParams(const ::media::AudioParameters& in_params); |
+ |
+// Converts chromecast::media::AudioParameters to ::media::AudioParameters. |
+::media::AudioParameters FromChromecastParams(const AudioParameters& in_params); |
+ |
+} // namespace media |
+} // namespace chromecast |
+ |
+#endif // CHROMECAST_MEDIA_BASE_CONVERTERS_H_ |