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

Issue 2933953003: Fix play block size mismatch in Win audio device. (Closed)

Created:
3 years, 6 months ago by lliuu
Modified:
3 years, 6 months ago
CC:
webrtc-reviews_webrtc.org, tterriberry_mozilla.com, audio-team_agora.io, sdk-team_agora.io, peah-webrtc
Target Ref:
refs/heads/master
Project:
webrtc
Visibility:
Public.

Description

Fix play block size mismatch in Win audio device. All of the buffer size returned by Windows Core Audio APIs are in unit of audio frames (which is sample times number of channels), while WebRTC's AudioDeviceBuffer RequestPlayoutData method takes in samples per channel (equivalent to frames per channel) but returns number of audio samples in all the channels. This CL makes sure that we compare playout block size in frames with frames and size in samples with samples, which should fix the excessive logging issues and audio quality problems due to the mismatch when comparing. BUG=webrtc:7797 Review-Url: https://codereview.webrtc.org/2933953003 Cr-Commit-Position: refs/heads/master@{#18546} Committed: https://chromium.googlesource.com/external/webrtc/+/c35c7dedc09fac7bc7aabe8ec4fabf00e8060b8e

Patch Set 1 #

Patch Set 2 : fix format #

Unified diffs Side-by-side diffs Delta from patch set Stats (+198 lines, -188 lines) Patch
M webrtc/modules/audio_device/win/audio_device_core_win.h View 1 1 chunk +2 lines, -2 lines 0 comments Download
M webrtc/modules/audio_device/win/audio_device_core_win.cc View 7 chunks +196 lines, -186 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 16 (11 generated)
lliuu
On 2017/06/12 23:20:31, lliuu wrote: > mailto:lliuu@webrtc.org changed reviewers: > + mailto:henrika@webrtc.org, mailto:niklas.enbom@webrtc.org Most of ...
3 years, 6 months ago (2017-06-12 23:22:08 UTC) #7
niklas.enbom
lgtm, I should have caught this in the prev review... On 2017/06/12 23:22:08, lliuu wrote: ...
3 years, 6 months ago (2017-06-12 23:31:14 UTC) #8
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/2933953003/20001
3 years, 6 months ago (2017-06-12 23:52:08 UTC) #12
commit-bot: I haz the power
Committed patchset #2 (id:20001) as https://chromium.googlesource.com/external/webrtc/+/c35c7dedc09fac7bc7aabe8ec4fabf00e8060b8e
3 years, 6 months ago (2017-06-12 23:54:12 UTC) #15
henrika_webrtc
3 years, 6 months ago (2017-06-13 12:11:38 UTC) #16
Message was sent while issue was closed.
Thanks for fixing. I missed it as well. Sorry if the existing interface is not
perfect.

lgtm

Powered by Google App Engine
This is Rietveld 408576698