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

Issue 2448113009: Add a NeededFrequency() method to the AudioMixer::Source interface. (Closed)

Created:
4 years, 1 month ago by aleloi
Modified:
4 years, 1 month ago
Reviewers:
kwiberg-webrtc
CC:
webrtc-reviews_webrtc.org, Andrew MacDonald, henrika_webrtc, tlegrand-webrtc, tterriberry_mozilla.com, audio-team_agora.io, hlundin-webrtc, peah-webrtc, minyue-webrtc, the sun
Target Ref:
refs/pending/heads/master
Project:
webrtc
Visibility:
Public.

Description

Add a NeededFrequency() method to the AudioMixer::Source interface. This change will allow for a audio source to report its sampling rate to the audio mixer. It is needed in order to mix at a lower sampling rate. Mixing at a lower sampling rate can in many cases lead to big efficiency improvements, as reported by experiments. The code affected is all implementations of the Source interface: AudioReceiveStream and a mock class. The AudioReceiveStream now queries its underlying voe::Channel object for the needed frequency. Note that the changes to the mixing algorithm are done in a later CL. BUG=webrtc:6346 NOTRY=True TBR=solenberg@webrtc.org Committed: https://crrev.com/051f678808d03fb2e68fe2a084b1deeb326c71bf Cr-Commit-Position: refs/heads/master@{#14839}

Patch Set 1 #

Total comments: 3

Patch Set 2 : Changed name to PreferredSampleRate and made Ssrc const. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+20 lines, -4 lines) Patch
M webrtc/api/audio/audio_mixer.h View 1 1 chunk +5 lines, -1 line 0 comments Download
M webrtc/audio/audio_receive_stream.h View 1 1 chunk +2 lines, -1 line 0 comments Download
M webrtc/audio/audio_receive_stream.cc View 1 1 chunk +5 lines, -1 line 0 comments Download
M webrtc/modules/audio_mixer/audio_mixer_impl_unittest.cc View 1 1 chunk +2 lines, -1 line 0 comments Download
M webrtc/voice_engine/channel_proxy.h View 1 chunk +2 lines, -0 lines 0 comments Download
M webrtc/voice_engine/channel_proxy.cc View 1 chunk +4 lines, -0 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 12 (7 generated)
aleloi
Hi! Can you take a look? It's a short CL related to a resampling issue ...
4 years, 1 month ago (2016-10-31 09:31:38 UTC) #3
kwiberg-webrtc
lgtm, but I'm not so happy with the name. It would have made sense for ...
4 years, 1 month ago (2016-10-31 09:43:20 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.webrtc.org/2448113009/20001
4 years, 1 month ago (2016-10-31 10:25:29 UTC) #8
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 1 month ago (2016-10-31 10:26:43 UTC) #10
commit-bot: I haz the power
4 years, 1 month ago (2016-10-31 10:26:54 UTC) #12
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/051f678808d03fb2e68fe2a084b1deeb326c71bf
Cr-Commit-Position: refs/heads/master@{#14839}

Powered by Google App Engine
This is Rietveld 408576698