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

Issue 10413075: alsa_output: Drain and pause pcm when stopping. (Closed)

Created:
8 years, 7 months ago by dgreid
Modified:
8 years, 7 months ago
CC:
chromium-reviews, feature-media-reviews_chromium.org
Base URL:
http://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

alsa_output: Drain and pause pcm when stopping. Call snd_pcm_drain when the output's Stop() function is called. This will keep some alsa interfaces from repeating the last samples played until Close() is called. This will also guarantee that all samples are played back if Close() is called immediately following Stop(). BUG=chromium-os:31211 TEST=Manual, play and pause youtube, both FLASH and HTML5 videos using the following alsa plugins as a sink for alsa_output: plug, hw, dmix, pulse, cras, jack. Observe that pauses are clean without repeated samples. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=138939

Patch Set 1 #

Patch Set 2 : #

Total comments: 1

Patch Set 3 : whitespace only. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+13 lines, -0 lines) Patch
M media/audio/linux/alsa_output.cc View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
M media/audio/linux/alsa_output_unittest.cc View 1 2 chunks +5 lines, -0 lines 0 comments Download
M media/audio/linux/alsa_wrapper.h View 1 chunk +1 line, -0 lines 0 comments Download
M media/audio/linux/alsa_wrapper.cc View 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
dgreid
This fixes audio samples looping after pausing a stream on ChromeOS(when using alsa... see crosbug.com/129243) ...
8 years, 7 months ago (2012-05-23 17:41:44 UTC) #1
scherkus (not reviewing)
LGTM w/ nit on whitespacing nice fix! http://codereview.chromium.org/10413075/diff/2001/media/audio/linux/alsa_output.cc File media/audio/linux/alsa_output.cc (right): http://codereview.chromium.org/10413075/diff/2001/media/audio/linux/alsa_output.cc#newcode337 media/audio/linux/alsa_output.cc:337: // Finish ...
8 years, 7 months ago (2012-05-24 17:57:27 UTC) #2
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dgreid@chromium.org/10413075/7001
8 years, 7 months ago (2012-05-24 21:13:16 UTC) #3
commit-bot: I haz the power
Try job failure for 10413075-7001 on win for step "update". http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win&number=13212 Step "update" is always ...
8 years, 7 months ago (2012-05-24 21:40:21 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dgreid@chromium.org/10413075/7001
8 years, 7 months ago (2012-05-24 22:46:38 UTC) #5
commit-bot: I haz the power
8 years, 7 months ago (2012-05-25 00:16:48 UTC) #6
Change committed as 138939

Powered by Google App Engine
This is Rietveld 408576698