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

Issue 10913267: Bypass audio resampler on XP / non-WASAPI wave out path. (Closed)

Created:
8 years, 3 months ago by DaleCurtis
Modified:
8 years, 3 months ago
CC:
chromium-reviews, feature-media-reviews_chromium.org
Visibility:
Public.

Description

Bypass audio resampler on XP / non-WASAPI wave out path. The non-WASAPI path (WaveOut) will automatically handle resampling and bits per sample differences, so skip invoking AudioOutputResampler's resampler and bits per sample adjustment code. BUG=148418 TEST=windows build / henrika TBR=scherkus Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=156801

Patch Set 1 : Fix! #

Total comments: 2

Patch Set 2 : DCHECK(low latency). Cleanup tests. #

Patch Set 3 : Comments. Fix buffer size selection. #

Patch Set 4 : Rebase. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+38 lines, -22 lines) Patch
M media/audio/audio_manager_base.h View 1 chunk +1 line, -1 line 0 comments Download
M media/audio/audio_manager_base.cc View 3 chunks +3 lines, -4 lines 0 comments Download
M media/audio/audio_output_proxy_unittest.cc View 1 7 chunks +6 lines, -15 lines 0 comments Download
M media/audio/audio_output_resampler.cc View 1 2 3 chunks +5 lines, -2 lines 0 comments Download
M media/audio/win/audio_manager_win.h View 1 chunk +3 lines, -0 lines 0 comments Download
M media/audio/win/audio_manager_win.cc View 1 1 chunk +20 lines, -0 lines 0 comments Download

Messages

Total messages: 13 (0 generated)
DaleCurtis
Compiles and runs on my remote Windows box. Henrik, let me know if this works ...
8 years, 3 months ago (2012-09-14 09:28:55 UTC) #1
scherkus (not reviewing)
chatted offline -- this is pretty subtle can you beef up w/ comments?
8 years, 3 months ago (2012-09-14 09:45:32 UTC) #2
henrika (OOO until Aug 14)
One quick initial comment before testing. https://codereview.chromium.org/10913267/diff/3001/media/audio/win/audio_manager_win.cc File media/audio/win/audio_manager_win.cc (right): https://codereview.chromium.org/10913267/diff/3001/media/audio/win/audio_manager_win.cc#newcode325 media/audio/win/audio_manager_win.cc:325: int bits_per_sample = ...
8 years, 3 months ago (2012-09-14 09:46:46 UTC) #3
DaleCurtis
https://codereview.chromium.org/10913267/diff/3001/media/audio/win/audio_manager_win.cc File media/audio/win/audio_manager_win.cc (right): https://codereview.chromium.org/10913267/diff/3001/media/audio/win/audio_manager_win.cc#newcode325 media/audio/win/audio_manager_win.cc:325: int bits_per_sample = input_params.bits_per_sample(); On 2012/09/14 09:46:46, henrika wrote: ...
8 years, 3 months ago (2012-09-14 09:59:05 UTC) #4
henrika (OOO until Aug 14)
It is a bit tricky to follow the chain and see where the actual fallback ...
8 years, 3 months ago (2012-09-14 10:19:20 UTC) #5
henrika (OOO until Aug 14)
Just for the record; using proper IsWASAPISupported => [15680:12932:0914/122026:VERBOSE1:audio_manager_win.cc(323)] AudioManagerWin::GetPreferredLowLatencyOutputStreamParameters() [15680:12932:0914/122026:VERBOSE1:audio_manager_win.cc(324)] input_params.sample_rate(): 44100 [15680:12932:0914/122026:VERBOSE1:audio_manager_win.cc(325)] input_params.bits_per_sample(): ...
8 years, 3 months ago (2012-09-14 10:22:54 UTC) #6
henrika (OOO until Aug 14)
My bad. Extended logging in AOR => [16988:9144:0914/124043:VERBOSE1:audio_manager_win.cc(323)] AudioManagerWin::GetPreferredLowLatencyOutputStreamParameters() [16988:9144:0914/124043:VERBOSE1:audio_manager_win.cc(324)] input_params.sample_rate(): 44100 [16988:9144:0914/124043:VERBOSE1:audio_manager_win.cc(325)] input_params.bits_per_sample(): 16 ...
8 years, 3 months ago (2012-09-14 10:42:42 UTC) #7
DaleCurtis
Thanks Henrik! I've added some additional logging. I also noticed my min/max values were flipped ...
8 years, 3 months ago (2012-09-14 10:53:57 UTC) #8
henrika (OOO until Aug 14)
Works better. New output when I tweak and force "XP" to be used: [7628:7380:0914/131808:VERBOSE1:audio_output_resampler.cc(136)] Input ...
8 years, 3 months ago (2012-09-14 11:19:25 UTC) #9
henrika (OOO until Aug 14)
LGTM. As we discussed off-line, we don't log an error message signaling that we fall ...
8 years, 3 months ago (2012-09-14 11:33:40 UTC) #10
DaleCurtis
Thanks Hernik, scherkus has already left for the day, but we discussed TBR'ing this as ...
8 years, 3 months ago (2012-09-14 11:34:41 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dalecurtis@chromium.org/10913267/9005
8 years, 3 months ago (2012-09-14 12:11:54 UTC) #12
scherkus (not reviewing)
8 years, 3 months ago (2012-09-14 14:29:14 UTC) #13
(took a look, lgtm still stands)
On Sep 14, 2012 2:11 PM, <commit-bot@chromium.org> wrote:

> CQ is trying da patch. Follow status at
> https://chromium-status.**appspot.com/cq/dalecurtis@**
>
chromium.org/10913267/9005<https://chromium-status.appspot.com/cq/dalecurtis@chromium.org/10913267/9005>
>
>
>
https://chromiumcodereview.**appspot.com/10913267/<https://chromiumcodereview...
>

Powered by Google App Engine
This is Rietveld 408576698