Add muted_output parameter to ACM
The new parameter indicates if the output in the AudioFrame is muted. If so, the output samples are not written, but should be interpreted as all zero. A version of AudioCodingModule::PlayoutData10Ms() without the new parameter is maintained while waiting for downstream dependencies to conform. BUG=webrtc:5609 Review-Url: https://codereview.webrtc.org/1976913002 Cr-Commit-Position: refs/heads/master@{#12719}
This commit is contained in:
committed by
Commit bot
parent
29dca2ce95
commit
834a6ea12b
@ -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
|
||||
|
||||
Reference in New Issue
Block a user