Index: media/audio/android/audio_manager_android.cc |
diff --git a/media/audio/android/audio_manager_android.cc b/media/audio/android/audio_manager_android.cc |
index 17567885331622d651a43c1573ee17bb07f691f8..0b64a85fd239d01cde7d3f06edd99bfe76762cb2 100644 |
--- a/media/audio/android/audio_manager_android.cc |
+++ b/media/audio/android/audio_manager_android.cc |
@@ -15,6 +15,7 @@ |
#include "base/strings/string_number_conversions.h" |
#include "jni/AudioManagerAndroid_jni.h" |
#include "media/audio/android/audio_record_input.h" |
+#include "media/audio/android/audio_track_output_stream.h" |
#include "media/audio/android/opensles_input.h" |
#include "media/audio/android/opensles_output.h" |
#include "media/audio/audio_device_description.h" |
@@ -239,9 +240,8 @@ AudioOutputStream* AudioManagerAndroid::MakeBitstreamOutputStream( |
const AudioParameters& params, |
const std::string& device_id, |
const LogCallback& log_callback) { |
- // TODO(tsunghung): add output stream for audio bitstream formats. |
- NOTREACHED(); |
- return nullptr; |
+ DCHECK(params.IsBitstreamFormat()); |
+ return new AudioTrackOutputStream(this, params); |
} |
AudioInputStream* AudioManagerAndroid::MakeLinearInputStream( |