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

Unified Diff: webrtc/modules/audio_coding/include/audio_coding_module.h

Issue 1976913002: Add muted_output parameter to ACM (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 4 years, 7 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: webrtc/modules/audio_coding/include/audio_coding_module.h
diff --git a/webrtc/modules/audio_coding/include/audio_coding_module.h b/webrtc/modules/audio_coding/include/audio_coding_module.h
index eb9d5b8866de1808f709a62191c37d3701b41364..daf9ac8ae9a5c72622d2944b6b1dcbed94935131 100644
--- a/webrtc/modules/audio_coding/include/audio_coding_module.h
+++ b/webrtc/modules/audio_coding/include/audio_coding_module.h
@@ -687,13 +687,24 @@ class AudioCodingModule {
// and other relevant parameters, c.f.
// module_common_types.h for the definition of
// AudioFrame.
+ // -muted : if true, the sample data in audio_frame is not
+ // populated, and must be interpreted as all zero.
//
// Return value:
// -1 if the function fails,
// 0 if the function succeeds.
//
virtual int32_t PlayoutData10Ms(int32_t desired_freq_hz,
- AudioFrame* audio_frame) = 0;
+ AudioFrame* audio_frame,
+ bool* muted) = 0;
+
+ /////////////////////////////////////////////////////////////////////////////
+ // Same as above, but without the muted parameter. This methods should not be
+ // used if enable_fast_accelerate was set to true in NetEq::Config.
+ // TODO(henrik.lundin) Remove this method when downstream dependencies are
+ // ready.
+ virtual int32_t PlayoutData10Ms(int32_t desired_freq_hz,
+ AudioFrame* audio_frame) = 0;
///////////////////////////////////////////////////////////////////////////
// Codec specific

Powered by Google App Engine
This is Rietveld 408576698