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

Issue 92131: Third installement of low level audio for mac... (Closed)

Created:
11 years, 8 months ago by cpu_(ooo_6.6-7.5)
Modified:
9 years, 6 months ago
Reviewers:
hclam.chromium, John Grabowski
CC:
chromium-reviews_googlegroups.com
Visibility:
Public.

Description

Third installement of low level audio for mac - Finally audio playback wired - Takes into account initial buffer fill change of last week - Two 'can you hear this?' unit tests added Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=15017

Patch Set 1 #

Total comments: 16

Patch Set 2 : '' #

Patch Set 3 : '' #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+130 lines, -14 lines) Patch
M media/audio/mac/audio_output_mac.cc View 1 2 5 chunks +80 lines, -14 lines 2 comments Download
M media/audio/mac/audio_output_mac_unittest.cc View 1 chunk +50 lines, -0 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
cpu_(ooo_6.6-7.5)
The only noteworthy thing here is lack of locks between the enqueue function and the ...
11 years, 8 months ago (2009-04-24 17:05:03 UTC) #1
John Grabowski
http://codereview.chromium.org/92131/diff/1/3 File media/audio/mac/audio_output_mac.cc (right): http://codereview.chromium.org/92131/diff/1/3#newcode32 Line 32: format_.mBytesPerFrame = format_.mBytesPerPacket; Not sure why you reordered ...
11 years, 8 months ago (2009-04-24 20:39:02 UTC) #2
cpu_(ooo_6.6-7.5)
code updated, please check again. http://codereview.chromium.org/92131/diff/1/3 File media/audio/mac/audio_output_mac.cc (right): http://codereview.chromium.org/92131/diff/1/3#newcode32 Line 32: format_.mBytesPerFrame = format_.mBytesPerPacket; ...
11 years, 7 months ago (2009-04-30 22:31:20 UTC) #3
cpu_(ooo_6.6-7.5)
Updated again with the SL constant. On 2009/04/30 22:31:20, cpu wrote: > code updated, please ...
11 years, 7 months ago (2009-04-30 22:49:15 UTC) #4
John Grabowski
11 years, 7 months ago (2009-04-30 23:16:24 UTC) #5
LGTM
Thanks for following up.

http://codereview.chromium.org/92131/diff/1/3
File media/audio/mac/audio_output_mac.cc (right):

http://codereview.chromium.org/92131/diff/1/3#newcode32
Line 32: format_.mBytesPerFrame = format_.mBytesPerPacket;
On 2009/04/30 22:31:20, cpu wrote:
> On 2009/04/24 20:39:02, John Grabowski wrote:
> > Not sure why you reordered this here.
> > If reordering is warranted perhaps you can order all these assignments to
> match
> > declaration order in the struct so it's easier to see if you missed one.
> 
> That was my original approach but if you recall I reordered as per mmentovai
> request. The change here is because that reordering introduced a bug :(
> mBytesPerFrame was being set to 0 regardless.  Unit test saved the bacon.
> 

Ah... I see it.
So glad to hear you have unit tests!!!

http://codereview.chromium.org/92131/diff/2002/2004#newcode11
Line 11: PCMQueueOutAudioOutputStream::PCMQueueOutAudioOutputStream(
Thanks for doing this.

http://codereview.chromium.org/92131/diff/2002/2004#newcode28
Line 28: format_.mBitsPerChannel = bits_per_sample;
More correctly, "when we switch to the Snow Leopard SDK"

Powered by Google App Engine
This is Rietveld 408576698