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

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

Issue 1965733002: NetEq: Implement muted output (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@muted-expand
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/neteq/include/neteq.h
diff --git a/webrtc/modules/audio_coding/neteq/include/neteq.h b/webrtc/modules/audio_coding/neteq/include/neteq.h
index 89b0c543244536084d15bf4df08db51eebda6509..c49377193927a782be1f82d3f85693601530cac1 100644
--- a/webrtc/modules/audio_coding/neteq/include/neteq.h
+++ b/webrtc/modules/audio_coding/neteq/include/neteq.h
@@ -93,6 +93,7 @@ class NetEq {
BackgroundNoiseMode background_noise_mode;
NetEqPlayoutMode playout_mode;
bool enable_fast_accelerate;
+ bool enable_muted_state = false;
};
enum ReturnCodes {
@@ -162,7 +163,7 @@ class NetEq {
// |vad_activity_| are updated upon success. If an error is returned, some
// fields may not have been updated.
// Returns kOK on success, or kFail in case of an error.
- virtual int GetAudio(AudioFrame* audio_frame) = 0;
+ virtual int GetAudio(AudioFrame* audio_frame, bool* muted_output) = 0;
minyue-webrtc 2016/05/11 11:29:53 suggest name: output_muted or even simply muted.
hlundin-webrtc 2016/05/12 07:44:40 Done.
// Associates |rtp_payload_type| with |codec| and |codec_name|, and stores the
// information in the codec database. Returns 0 on success, -1 on failure.

Powered by Google App Engine
This is Rietveld 408576698