Index: chromecast/media/base/cast_audio_decoder_android.cc |
diff --git a/chromecast/media/base/cast_audio_decoder_android.cc b/chromecast/media/base/cast_audio_decoder_android.cc |
new file mode 100644 |
index 0000000000000000000000000000000000000000..254ea1b96324543cf3a2a7b445767e1ff7c3dd45 |
--- /dev/null |
+++ b/chromecast/media/base/cast_audio_decoder_android.cc |
@@ -0,0 +1,33 @@ |
+// 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. |
+ |
+#include "chromecast/media/base/cast_audio_decoder.h" |
+ |
+#include "base/logging.h" |
+ |
+namespace chromecast { |
+ |
+// static |
+scoped_ptr<CastAudioDecoder> CastAudioDecoder::Create( |
+ const scoped_refptr<base::SingleThreadTaskRunner>& task_runner, |
+ const media::AudioConfig& config, |
+ OutputFormat output_format, |
+ const InitializedCallback& initialized_callback) { |
+ return scoped_ptr<CastAudioDecoder>(); |
+} |
+ |
+// static |
+int CastAudioDecoder::OutputFormatSizeInBytes( |
+ CastAudioDecoder::OutputFormat format) { |
+ switch (format) { |
+ case CastAudioDecoder::OutputFormat::kOutputSigned16: |
+ return 2; |
+ case CastAudioDecoder::OutputFormat::kOutputPlanarFloat: |
+ return 4; |
+ } |
+ NOTREACHED(); |
+ return 1; |
+} |
+ |
+} // namespace chromecast |