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

Issue 10795066: Support for both 44.1 kHz and 48 kHz on the client. (Closed)

Created:
8 years, 5 months ago by kxing
Modified:
8 years, 4 months ago
Reviewers:
Sergey Ulanov, Wez, garykac
CC:
chromium-reviews, jamiewalch+watch_chromium.org, dcaiafa+watch_chromium.org, simonmorris+watch_chromium.org, hclam+watch_chromium.org, wez+watch_chromium.org, amit, sanjeevr, garykac+watch_chromium.org, lambroslambrou+watch_chromium.org, alexeypa+watch_chromium.org, sergeyu+watch_chromium.org
Visibility:
Public.

Description

Support for both 44.1 kHz and 48 kHz on the client. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=148203

Patch Set 1 #

Total comments: 14

Patch Set 2 : Simplified audio player interface #

Patch Set 3 : Reupload #

Patch Set 4 : Removed unused variable #

Total comments: 2

Patch Set 5 : Addressed comment #

Patch Set 6 : Reupload #

Total comments: 4

Patch Set 7 : Addressed comments #

Patch Set 8 : Small cleanup #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+65 lines, -33 lines) Patch
M remoting/client/audio_player.h View 1 1 chunk +0 lines, -5 lines 0 comments Download
M remoting/client/chromoting_client.cc View 1 1 chunk +0 lines, -2 lines 0 comments Download
M remoting/client/plugin/pepper_audio_player.h View 1 2 3 4 5 6 7 3 chunks +9 lines, -8 lines 0 comments Download
M remoting/client/plugin/pepper_audio_player.cc View 1 2 3 4 5 6 3 chunks +56 lines, -18 lines 4 comments Download

Messages

Total messages: 10 (0 generated)
kxing
Could someone PTAL?
8 years, 5 months ago (2012-07-23 17:53:38 UTC) #1
Sergey Ulanov
http://codereview.chromium.org/10795066/diff/1/remoting/client/plugin/pepper_audio_player.cc File remoting/client/plugin/pepper_audio_player.cc (right): http://codereview.chromium.org/10795066/diff/1/remoting/client/plugin/pepper_audio_player.cc#newcode37 remoting/client/plugin/pepper_audio_player.cc:37: DoStop(); Do we really need to call this explicitly? ...
8 years, 5 months ago (2012-07-23 22:01:46 UTC) #2
kxing
Could someone PTAL again? http://codereview.chromium.org/10795066/diff/1/remoting/client/plugin/pepper_audio_player.cc File remoting/client/plugin/pepper_audio_player.cc (right): http://codereview.chromium.org/10795066/diff/1/remoting/client/plugin/pepper_audio_player.cc#newcode37 remoting/client/plugin/pepper_audio_player.cc:37: DoStop(); On 2012/07/23 22:01:47, sergeyu ...
8 years, 5 months ago (2012-07-23 22:58:46 UTC) #3
Sergey Ulanov
http://codereview.chromium.org/10795066/diff/5002/remoting/client/plugin/pepper_audio_player.cc File remoting/client/plugin/pepper_audio_player.cc (right): http://codereview.chromium.org/10795066/diff/5002/remoting/client/plugin/pepper_audio_player.cc#newcode86 remoting/client/plugin/pepper_audio_player.cc:86: StartPlayback(); we never use result returned from that function. ...
8 years, 5 months ago (2012-07-23 23:32:02 UTC) #4
kxing
Could someone PTAL again? http://codereview.chromium.org/10795066/diff/5002/remoting/client/plugin/pepper_audio_player.cc File remoting/client/plugin/pepper_audio_player.cc (right): http://codereview.chromium.org/10795066/diff/5002/remoting/client/plugin/pepper_audio_player.cc#newcode86 remoting/client/plugin/pepper_audio_player.cc:86: StartPlayback(); On 2012/07/23 23:32:02, sergeyu ...
8 years, 5 months ago (2012-07-24 17:20:43 UTC) #5
Sergey Ulanov
lgtm when my last two comments are addressed http://codereview.chromium.org/10795066/diff/5004/remoting/client/plugin/pepper_audio_player.cc File remoting/client/plugin/pepper_audio_player.cc (right): http://codereview.chromium.org/10795066/diff/5004/remoting/client/plugin/pepper_audio_player.cc#newcode54 remoting/client/plugin/pepper_audio_player.cc:54: void ...
8 years, 5 months ago (2012-07-24 18:10:03 UTC) #6
kxing
I'll commit this soon, unless someone objects. http://codereview.chromium.org/10795066/diff/5004/remoting/client/plugin/pepper_audio_player.cc File remoting/client/plugin/pepper_audio_player.cc (right): http://codereview.chromium.org/10795066/diff/5004/remoting/client/plugin/pepper_audio_player.cc#newcode54 remoting/client/plugin/pepper_audio_player.cc:54: void PepperAudioPlayer::ResetAudioPlayer( ...
8 years, 5 months ago (2012-07-24 18:32:00 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kxing@chromium.org/10795066/5
8 years, 5 months ago (2012-07-24 19:34:34 UTC) #8
commit-bot: I haz the power
Change committed as 148203
8 years, 5 months ago (2012-07-24 21:23:01 UTC) #9
Wez
8 years, 4 months ago (2012-08-07 20:09:48 UTC) #10
Some belated comments.

I notice that AudioPlayer now looks very similar to the new AudioDecoder/Encoder
interfaces; you could merge them into a single AudioHandler interface with a
HandleAudioPacket() method, and have AudioEncoder/Decoders passed a target
AudioHandler when they are created; they would then process packets and pass
them to the target handler rather than returning them to the caller.

https://chromiumcodereview.appspot.com/10795066/diff/5/remoting/client/plugin...
File remoting/client/plugin/pepper_audio_player.cc (right):

https://chromiumcodereview.appspot.com/10795066/diff/5/remoting/client/plugin...
remoting/client/plugin/pepper_audio_player.cc:48: AudioPacket::SamplingRate
sampling_rate) {
nit: It seems cleaner to clear any queued packets in this function that doing it
in ProcessAudioPacket, since this function is supposed to reset the AudioPlayer.

https://chromiumcodereview.appspot.com/10795066/diff/5/remoting/client/plugin...
remoting/client/plugin/pepper_audio_player.cc:70: LOG(ERROR) << "Failed to start
Pepper audio player";
nit: Why log this here, rather than letting the caller log it?

https://chromiumcodereview.appspot.com/10795066/diff/5/remoting/client/plugin...
remoting/client/plugin/pepper_audio_player.cc:88: // Start the Pepper audio
player if this is the first packet.
nit: If you perform this check before testing start_failed_ then you don't need
the early-return on !success below; you simply set start_failed_ to
!ResetAudioPlayer(...).

https://chromiumcodereview.appspot.com/10795066/diff/5/remoting/client/plugin...
remoting/client/plugin/pepper_audio_player.cc:89: if (sampling_rate_ !=
packet->sampling_rate()) {
nit: You could move this check into ResetAudioPlayer() and have it early-exit if
the rates match, so that the rate-change logic is all in that one function;
you'd then queue the packet only if ResetAudioPlayer returned true, and
ResetAudioPlayer would be responsible for testing/setting start_failed_ whenever
the rate changed.

Powered by Google App Engine
This is Rietveld 408576698