[webkit-reviews] review denied: [Bug 36475] audio engine: add AudioFileReader files (Mac implementation) : [Attachment 65750] Patch
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Thu Sep 9 15:25:34 PDT 2010
Kenneth Russell <kbr at google.com> has denied Chris Rogers <crogers at google.com>'s
request for review:
Bug 36475: audio engine: add AudioFileReader files (Mac implementation)
https://bugs.webkit.org/show_bug.cgi?id=36475
Attachment 65750: Patch
https://bugs.webkit.org/attachment.cgi?id=65750&action=review
------- Additional Comments from Kenneth Russell <kbr at google.com>
View in context:
https://bugs.webkit.org/attachment.cgi?id=65750&action=prettypatch
This basically looks fine to me but I have a couple of questions, plus one
relatively tiny requested movement of one line of code.
> WebCore/platform/audio/mac/AudioFileReaderMac.cpp:37
> +#include <Carbon/Carbon.h>
Is it kosher to be adding dependencies on Carbon at this point? Does this code
build in 64-bit mode?
> WebCore/platform/audio/mac/AudioFileReaderMac.cpp:44
> + UInt32 bufferListSize = sizeof(AudioBufferList) - sizeof(AudioBuffer);
Why can't bufferListSize use a more standard type like size_t?
> WebCore/platform/audio/mac/AudioFileReaderMac.cpp:193
> + AudioFloatArray bufR(numberOfFrames);
It would be nice if there were a way to avoid allocating these if we aren't
mixing the input down to mono.
> WebCore/platform/audio/mac/AudioFileReaderMac.cpp:225
> + float* destL = audioBus->channel(0)->data();
This variable declaration should be enclosed in the following if block.
More information about the webkit-reviews
mailing list