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

Unified Diff: media/audio/mac/audio_low_latency_input_mac.h

Issue 396263004: Switch the input code to use AudioBlockFifo (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: addressed the comments. 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/mac/audio_low_latency_input_mac.h
diff --git a/media/audio/mac/audio_low_latency_input_mac.h b/media/audio/mac/audio_low_latency_input_mac.h
index 059cf1f808b59dca4833038a759276df51cc54bb..c8e43fa7ff70f06d6f39836392460334814244b6 100644
--- a/media/audio/mac/audio_low_latency_input_mac.h
+++ b/media/audio/mac/audio_low_latency_input_mac.h
@@ -45,11 +45,11 @@
#include "media/audio/agc_audio_stream.h"
#include "media/audio/audio_io.h"
#include "media/audio/audio_parameters.h"
+#include "media/base/audio_block_fifo.h"
namespace media {
class AudioBus;
-class AudioFifo;
class AudioManagerMac;
class DataBuffer;
@@ -148,20 +148,12 @@ class AUAudioInputStream : public AgcAudioStream<AudioInputStream> {
// when querying the volume of each channel.
int number_of_channels_in_frame_;
- // Dynamically allocated FIFO used to accumulates recorded data when
- // CoreAudio delivers non-requested frame size of data.
- scoped_ptr<media::AudioFifo> fifo_;
+ // FIFO used to accumulates recorded data.
+ media::AudioBlockFifo fifo_;
// Used to defer Start() to workaround http://crbug.com/160920.
base::CancelableClosure deferred_start_cb_;
- // Audio bus used for storage of deinterleaved data for the OnData callback.
- scoped_ptr<media::AudioBus> audio_bus_;
-
- // Audio bus used to convert interleaved data to deinterleaved data before
- // storing data to FIFO or delivering data via OnData callback.
- scoped_ptr<media::AudioBus> audio_wrapper_;
-
DISALLOW_COPY_AND_ASSIGN(AUAudioInputStream);
};
« no previous file with comments | « content/renderer/media/webrtc_local_audio_renderer.cc ('k') | media/audio/mac/audio_low_latency_input_mac.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698