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

Unified Diff: media/audio/android/audio_record_input.h

Issue 344583002: Modifies AudioInputCallback::OnData and use media::AudioBus instead of plain byte vector (Relanding) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Added extra non-pure OnData API Created 6 years, 6 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
« no previous file with comments | « media/audio/android/audio_android_unittest.cc ('k') | media/audio/android/audio_record_input.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/audio/android/audio_record_input.h
diff --git a/media/audio/android/audio_record_input.h b/media/audio/android/audio_record_input.h
index 0a2578b107937595ca4820c151af80e1ec12cb7c..c240038360b77250e0097c2e0b6be1f3a8d8f631 100644
--- a/media/audio/android/audio_record_input.h
+++ b/media/audio/android/audio_record_input.h
@@ -12,6 +12,7 @@
namespace media {
+class AudioBus;
class AudioManagerAndroid;
// Implements PCM audio input support for Android using the Java AudioRecord
@@ -64,6 +65,9 @@ class MEDIA_EXPORT AudioRecordInputStream : public AudioInputStream {
// Owned by j_audio_record_.
uint8* direct_buffer_address_;
+ scoped_ptr<media::AudioBus> audio_bus_;
+ int bytes_per_sample_;
+
DISALLOW_COPY_AND_ASSIGN(AudioRecordInputStream);
};
« no previous file with comments | « media/audio/android/audio_android_unittest.cc ('k') | media/audio/android/audio_record_input.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698