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

Unified Diff: webrtc/audio/audio_receive_stream.cc

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 | « webrtc/audio/audio_receive_stream.h ('k') | webrtc/modules/audio_mixer/audio_mixer_impl_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/audio/audio_receive_stream.cc
diff --git a/webrtc/audio/audio_receive_stream.cc b/webrtc/audio/audio_receive_stream.cc
index 12b8b3f7ad568582c1fb45b912c328b7b74b2deb..657a7608ec935db8514eaa33da890fa97f54d58e 100644
--- a/webrtc/audio/audio_receive_stream.cc
+++ b/webrtc/audio/audio_receive_stream.cc
@@ -278,7 +278,11 @@ AudioMixer::Source::AudioFrameInfo AudioReceiveStream::GetAudioFrameWithInfo(
return channel_proxy_->GetAudioFrameWithInfo(sample_rate_hz, audio_frame);
}
-int AudioReceiveStream::Ssrc() {
+int AudioReceiveStream::PreferredSampleRate() const {
+ return channel_proxy_->NeededFrequency();
+}
+
+int AudioReceiveStream::Ssrc() const {
return config_.rtp.local_ssrc;
}
« no previous file with comments | « webrtc/audio/audio_receive_stream.h ('k') | webrtc/modules/audio_mixer/audio_mixer_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698