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

Unified Diff: webrtc/api/audio/audio_mixer.h

Issue 2448113009: Add a NeededFrequency() method to the AudioMixer::Source interface. (Closed)
Patch Set: Changed name to PreferredSampleRate and made Ssrc const. Created 4 years, 1 month 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_receive_stream.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/api/audio/audio_mixer.h
diff --git a/webrtc/api/audio/audio_mixer.h b/webrtc/api/audio/audio_mixer.h
index ee39daaf102acb2dc467832da5b118f2edc2eb7b..f786d6c99bc336e6ccf57664eaa5c7acc47f3b3a 100644
--- a/webrtc/api/audio/audio_mixer.h
+++ b/webrtc/api/audio/audio_mixer.h
@@ -42,7 +42,11 @@ class AudioMixer : public rtc::RefCountInterface {
AudioFrame* audio_frame) = 0;
// A way for a mixer implementation to distinguish participants.
- virtual int Ssrc() = 0;
+ virtual int Ssrc() const = 0;
+
+ // A way for this source to say that GetAudioFrameWithInfo called
+ // with this sample rate or higher will not cause quality loss.
+ virtual int PreferredSampleRate() const = 0;
virtual ~Source() {}
};
« no previous file with comments | « no previous file | webrtc/audio/audio_receive_stream.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698