Modified: trunk/Source/WebCore/ChangeLog (91318 => 91319)
--- trunk/Source/WebCore/ChangeLog 2011-07-19 23:14:27 UTC (rev 91318)
+++ trunk/Source/WebCore/ChangeLog 2011-07-19 23:14:30 UTC (rev 91319)
@@ -1,3 +1,14 @@
+2011-07-19 Chris Rogers <[email protected]>
+
+ Fix web audio compile on mac port
+ https://bugs.webkit.org/show_bug.cgi?id=64836
+
+ Unreviewed build fix.
+
+ * bindings/js/JSAudioContextCustom.cpp:
+ (WebCore::JSAudioContextConstructor::constructJSAudioContext):
+ (WebCore::JSAudioContext::createBuffer):
+
2011-07-19 Jessie Berlin <[email protected]>
Work towards determining the cause of frequent crashes due to null frame below
Modified: trunk/Source/WebCore/bindings/js/JSAudioContextCustom.cpp (91318 => 91319)
--- trunk/Source/WebCore/bindings/js/JSAudioContextCustom.cpp 2011-07-19 23:14:27 UTC (rev 91318)
+++ trunk/Source/WebCore/bindings/js/JSAudioContextCustom.cpp 2011-07-19 23:14:30 UTC (rev 91319)
@@ -93,7 +93,7 @@
audioContext = AudioContext::createOfflineContext(document, numberOfChannels, numberOfFrames, sampleRate, ec);
if (ec) {
setDOMException(exec, ec);
- return jsUndefined();
+ return throwVMError(exec, createSyntaxError(exec, "Error creating OfflineAudioContext"));
}
}
@@ -138,13 +138,13 @@
float sampleRate = exec->argument(2).toFloat(exec);
if (numberOfChannels <= 0 || numberOfChannels > 10)
- return throwVMError(exec, createSyntaxError(exec, "Invalid number of channels"));
+ return throwError(exec, createSyntaxError(exec, "Invalid number of channels"));
if (numberOfFrames <= 0)
- return throwVMError(exec, createSyntaxError(exec, "Invalid number of frames"));
+ return throwError(exec, createSyntaxError(exec, "Invalid number of frames"));
if (sampleRate <= 0)
- return throwVMError(exec, createSyntaxError(exec, "Invalid sample rate"));
+ return throwError(exec, createSyntaxError(exec, "Invalid sample rate"));
RefPtr<AudioBuffer> audioBuffer = audioContext->createBuffer(numberOfChannels, numberOfFrames, sampleRate);
if (!audioBuffer.get())