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

Unified Diff: media/audio/android/audio_manager_android.cc

Issue 1525033003: Add an AudioTrack based audio output stream. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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
« no previous file with comments | « media/audio/BUILD.gn ('k') | media/audio/android/audio_track_output_stream.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 96a7c78c29c055d099f5ee985a8a591bfe44c3a8..512f1fcc7104d0641e4ede820bf3fb4be3daec33 100644
--- a/media/audio/android/audio_manager_android.cc
+++ b/media/audio/android/audio_manager_android.cc
@@ -17,6 +17,7 @@
#include "media/audio/android/audio_record_input.h"
#include "media/audio/android/opensles_input.h"
#include "media/audio/android/opensles_output.h"
+#include "media/audio/android/audio_track_output_stream.h"
#include "media/audio/audio_manager.h"
#include "media/audio/audio_parameters.h"
#include "media/audio/fake_audio_input_stream.h"
@@ -211,9 +212,10 @@ AudioOutputStream* AudioManagerAndroid::MakeLowLatencyOutputStream(
// Set stream type which matches the current system-wide audio mode used by
// the Android audio manager.
- const SLint32 stream_type = communication_mode_is_on_ ?
- SL_ANDROID_STREAM_VOICE : SL_ANDROID_STREAM_MEDIA;
- return new OpenSLESOutputStream(this, params, stream_type);
+ // const SLint32 stream_type = communication_mode_is_on_ ?
+ // SL_ANDROID_STREAM_VOICE : SL_ANDROID_STREAM_MEDIA;
+// return new OpenSLESOutputStream(this, params, stream_type);
+ return new AudioTrackOutputStream(this, params);
}
AudioInputStream* AudioManagerAndroid::MakeLinearInputStream(
« no previous file with comments | « media/audio/BUILD.gn ('k') | media/audio/android/audio_track_output_stream.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698