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

Unified Diff: media/base/audio_converter.h

Issue 177333003: Add support for midstream audio configuration changes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@ABS
Patch Set: Created 6 years, 9 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/base/audio_converter.h
diff --git a/media/base/audio_converter.h b/media/base/audio_converter.h
index b921a3a186e47c96d52c1a9090384d6c69d476dc..6d441ce4f4ee333f4e1391f90720ef66a8a26e03 100644
--- a/media/base/audio_converter.h
+++ b/media/base/audio_converter.h
@@ -90,6 +90,9 @@ class MEDIA_EXPORT AudioConverter {
// to each input's ProvideInput for more data.
int ChunkSize() const;
+ // How many frames will be requested via a single ProvideInput() call.
DaleCurtis 2014/03/20 19:29:01 You should be able to calculate this within your c
rileya (GONE FROM CHROMIUM) 2014/03/21 20:58:49 Good point, I'd previously disabled the fifo, but
+ int RequestSize() const;
+
private:
// Provides input to the MultiChannelResampler. Called by the resampler when
// more data is necessary.
@@ -137,6 +140,8 @@ class MEDIA_EXPORT AudioConverter {
// AudioBus structures on demand in response to varying frame size requests.
const int input_channel_count_;
+ const double io_sample_rate_ratio_;
+
DISALLOW_COPY_AND_ASSIGN(AudioConverter);
};

Powered by Google App Engine
This is Rietveld 408576698