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

Issue 2557513002: [Chromecast] Add support for different playback rates to ALSA backend (Closed)

Created:
4 years ago by kmackay
Modified:
4 years ago
Reviewers:
slan, halliwell, DaleCurtis
CC:
alokp+watch_chromium.org, chromium-reviews, feature-media-reviews_chromium.org, halliwell+watch_chromium.org, lcwu+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Chromecast] Add support for different playback rates to ALSA backend BUG= internal b/27450476 TEST= cast_multizone_backend_unittests Committed: https://crrev.com/5d51839919eb8bb4ec7e82f6e01de6df4bc7919f Cr-Commit-Position: refs/heads/master@{#438866}

Patch Set 1 #

Total comments: 56

Patch Set 2 : Add comments etc #

Total comments: 4

Patch Set 3 : use CreateEmptyBuffer #

Unified diffs Side-by-side diffs Delta from patch set Stats (+379 lines, -75 lines) Patch
A chromecast/media/cma/backend/alsa/DEPS View 1 chunk +3 lines, -0 lines 0 comments Download
M chromecast/media/cma/backend/alsa/audio_decoder_alsa.h View 1 6 chunks +31 lines, -4 lines 0 comments Download
M chromecast/media/cma/backend/alsa/audio_decoder_alsa.cc View 1 2 13 chunks +275 lines, -39 lines 0 comments Download
M chromecast/media/cma/backend/alsa/media_pipeline_backend_alsa.cc View 1 chunk +3 lines, -3 lines 0 comments Download
M chromecast/media/cma/backend/alsa/stream_mixer_alsa_input_impl.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M chromecast/media/cma/backend/alsa/stream_mixer_alsa_input_impl.cc View 1 3 chunks +6 lines, -0 lines 0 comments Download
M chromecast/media/cma/backend/multizone_backend_unittest.cc View 15 chunks +56 lines, -28 lines 0 comments Download
M chromecast/media/cma/decoder/cast_audio_decoder_linux.cc View 1 chunk +4 lines, -1 line 0 comments Download

Messages

Total messages: 21 (7 generated)
kmackay
4 years ago (2016-12-05 21:48:00 UTC) #2
halliwell
https://codereview.chromium.org/2557513002/diff/1/chromecast/media/cma/backend/alsa/audio_decoder_alsa.cc File chromecast/media/cma/backend/alsa/audio_decoder_alsa.cc (right): https://codereview.chromium.org/2557513002/diff/1/chromecast/media/cma/backend/alsa/audio_decoder_alsa.cc#newcode348 chromecast/media/cma/backend/alsa/audio_decoder_alsa.cc:348: if (got_eos_) { I don't think this branch can ...
4 years ago (2016-12-06 17:28:00 UTC) #3
slan
https://codereview.chromium.org/2557513002/diff/1/chromecast/media/cma/backend/alsa/audio_decoder_alsa.cc File chromecast/media/cma/backend/alsa/audio_decoder_alsa.cc (right): https://codereview.chromium.org/2557513002/diff/1/chromecast/media/cma/backend/alsa/audio_decoder_alsa.cc#newcode68 chromecast/media/cma/backend/alsa/audio_decoder_alsa.cc:68: ::media::AudioBus::Create(2, kDefaultFramesPerBuffer)), nit: Can we do "2 /* num_channels ...
4 years ago (2016-12-07 00:22:28 UTC) #4
slan
One high-level comment: I think in general commenting blocks of code would be helpful. This ...
4 years ago (2016-12-07 00:25:57 UTC) #5
kmackay
https://codereview.chromium.org/2557513002/diff/1/chromecast/media/cma/backend/alsa/audio_decoder_alsa.cc File chromecast/media/cma/backend/alsa/audio_decoder_alsa.cc (right): https://codereview.chromium.org/2557513002/diff/1/chromecast/media/cma/backend/alsa/audio_decoder_alsa.cc#newcode68 chromecast/media/cma/backend/alsa/audio_decoder_alsa.cc:68: ::media::AudioBus::Create(2, kDefaultFramesPerBuffer)), On 2016/12/07 00:22:27, slan wrote: > nit: ...
4 years ago (2016-12-07 22:59:58 UTC) #6
slan
lgtm https://codereview.chromium.org/2557513002/diff/1/chromecast/media/cma/backend/alsa/audio_decoder_alsa.cc File chromecast/media/cma/backend/alsa/audio_decoder_alsa.cc (right): https://codereview.chromium.org/2557513002/diff/1/chromecast/media/cma/backend/alsa/audio_decoder_alsa.cc#newcode239 chromecast/media/cma/backend/alsa/audio_decoder_alsa.cc:239: if (pending_buffer_complete_ && !rate_shifter_->IsQueueFull()) { On 2016/12/07 22:59:57, ...
4 years ago (2016-12-09 00:05:31 UTC) #7
kmackay
https://codereview.chromium.org/2557513002/diff/1/chromecast/media/cma/backend/alsa/audio_decoder_alsa.cc File chromecast/media/cma/backend/alsa/audio_decoder_alsa.cc (right): https://codereview.chromium.org/2557513002/diff/1/chromecast/media/cma/backend/alsa/audio_decoder_alsa.cc#newcode265 chromecast/media/cma/backend/alsa/audio_decoder_alsa.cc:265: void AudioDecoderAlsa::CreateRateShifter(int samples_per_second) { On 2016/12/09 00:05:31, slan wrote: ...
4 years ago (2016-12-09 00:21:16 UTC) #8
kmackay
+dalecurtis for DEPS approval
4 years ago (2016-12-13 04:34:56 UTC) #10
DaleCurtis
This is getting quite messy. You're ending up with the architecture that <audio> had in ...
4 years ago (2016-12-13 20:13:35 UTC) #11
kmackay
https://codereview.chromium.org/2557513002/diff/20001/chromecast/media/cma/backend/alsa/audio_decoder_alsa.cc File chromecast/media/cma/backend/alsa/audio_decoder_alsa.cc (right): https://codereview.chromium.org/2557513002/diff/20001/chromecast/media/cma/backend/alsa/audio_decoder_alsa.cc#newcode161 chromecast/media/cma/backend/alsa/audio_decoder_alsa.cc:161: bool AudioDecoderAlsa::SetPlaybackRate(float rate) { On 2016/12/13 20:13:35, DaleCurtis wrote: ...
4 years ago (2016-12-13 20:39:47 UTC) #12
kmackay
https://codereview.chromium.org/2557513002/diff/20001/chromecast/media/cma/backend/alsa/audio_decoder_alsa.cc File chromecast/media/cma/backend/alsa/audio_decoder_alsa.cc (right): https://codereview.chromium.org/2557513002/diff/20001/chromecast/media/cma/backend/alsa/audio_decoder_alsa.cc#newcode57 chromecast/media/cma/backend/alsa/audio_decoder_alsa.cc:57: scoped_refptr<::media::AudioBuffer> CreateSilenceBuffer(int sample_rate) { On 2016/12/13 20:13:35, DaleCurtis_OOO_Dec14_Jan6 wrote: ...
4 years ago (2016-12-15 17:29:40 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2557513002/40001
4 years ago (2016-12-15 17:30:35 UTC) #16
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years ago (2016-12-15 17:41:07 UTC) #19
commit-bot: I haz the power
4 years ago (2016-12-15 17:44:08 UTC) #21
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/5d51839919eb8bb4ec7e82f6e01de6df4bc7919f
Cr-Commit-Position: refs/heads/master@{#438866}

Powered by Google App Engine
This is Rietveld 408576698