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

Unified Diff: webrtc/api/call/audio_sink.h

Issue 2750783004: Add mute state field to AudioFrame. (Closed)
Patch Set: don't return from Add() too early Created 3 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
« no previous file with comments | « no previous file | webrtc/audio/audio_transport_proxy.cc » ('j') | webrtc/audio/audio_transport_proxy.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/api/call/audio_sink.h
diff --git a/webrtc/api/call/audio_sink.h b/webrtc/api/call/audio_sink.h
index e865ead365cdc68e2ec50a2b4a2a0c607a26990d..8d38763f9402e6e6a351c3a051ad5cd72c210e76 100644
--- a/webrtc/api/call/audio_sink.h
+++ b/webrtc/api/call/audio_sink.h
@@ -27,7 +27,7 @@ class AudioSinkInterface {
virtual ~AudioSinkInterface() {}
struct Data {
- Data(int16_t* data,
+ Data(const int16_t* data,
hlundin-webrtc 2017/03/16 14:47:48 This file is in our set of public API files, which
yujo 2017/03/16 23:37:21 Done.
size_t samples_per_channel,
int sample_rate,
size_t channels,
@@ -38,7 +38,7 @@ class AudioSinkInterface {
channels(channels),
timestamp(timestamp) {}
- int16_t* data; // The actual 16bit audio data.
+ const int16_t* data; // The actual 16bit audio data.
size_t samples_per_channel; // Number of frames in the buffer.
int sample_rate; // Sample rate in Hz.
size_t channels; // Number of channels in the audio data.
« no previous file with comments | « no previous file | webrtc/audio/audio_transport_proxy.cc » ('j') | webrtc/audio/audio_transport_proxy.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698