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

Unified Diff: media/audio/pulse/pulse_input.h

Issue 396263004: Switch the input code to use AudioBlockFifo (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 5 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/pulse/pulse_input.h
diff --git a/media/audio/pulse/pulse_input.h b/media/audio/pulse/pulse_input.h
index 7e64bb296a8749c0a15ce2fa3679897a29f338bb..695c39f390d178227e2981b374fc4212dfce54bf 100644
--- a/media/audio/pulse/pulse_input.h
+++ b/media/audio/pulse/pulse_input.h
@@ -20,8 +20,8 @@ struct pa_threaded_mainloop;
namespace media {
+class AudioBlockFifo;
class AudioManagerPulse;
-class SeekableBuffer;
class PulseAudioInputStream : public AgcAudioStream<AudioInputStream> {
public:
@@ -61,11 +61,7 @@ class PulseAudioInputStream : public AgcAudioStream<AudioInputStream> {
bool stream_started_;
// Holds the data from the OS.
- scoped_ptr<media::SeekableBuffer> buffer_;
-
- // Temporary storage for recorded data. It gets a packet of data from
- // |buffer_| and deliver the data to OnData() callback.
- scoped_ptr<uint8[]> audio_data_buffer_;
+ scoped_ptr<AudioBlockFifo> fifo_;
// PulseAudio API structs.
pa_threaded_mainloop* pa_mainloop_; // Weak.
@@ -75,8 +71,6 @@ class PulseAudioInputStream : public AgcAudioStream<AudioInputStream> {
// Flag indicating the state of the context has been changed.
bool context_state_changed_;
- scoped_ptr<AudioBus> audio_bus_;
-
base::ThreadChecker thread_checker_;
DISALLOW_COPY_AND_ASSIGN(PulseAudioInputStream);

Powered by Google App Engine
This is Rietveld 408576698