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

Unified Diff: media/audio/alsa/alsa_input.h

Issue 314713002: Modifies AudioInputCallback::OnData and use media::AudioBus instead of plain byte vector (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fixed SpeechRecognitionBrowserTest 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
Index: media/audio/alsa/alsa_input.h
diff --git a/media/audio/alsa/alsa_input.h b/media/audio/alsa/alsa_input.h
index 90c388382a0b68f5c0be8238cca5bbdd3ab46d9f..c26f3e2b66eb2287b687283721823ed64d882dcd 100644
--- a/media/audio/alsa/alsa_input.h
+++ b/media/audio/alsa/alsa_input.h
@@ -82,6 +82,7 @@ class AlsaPcmInputStream : public AgcAudioStream<AudioInputStream> {
snd_mixer_elem_t* mixer_element_handle_; // Handle to the capture element.
scoped_ptr<uint8[]> audio_buffer_; // Buffer used for reading audio data.
bool read_callback_behind_schedule_;
+ scoped_ptr<AudioBus> audio_bus_;
// NOTE: Weak pointers must be invalidated before all other member variables.
base::WeakPtrFactory<AlsaPcmInputStream> weak_factory_;

Powered by Google App Engine
This is Rietveld 408576698