Changeset 91319 in webkit
- Timestamp:
- Jul 19, 2011 4:14:30 PM (13 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r91316 r91319 1 2011-07-19 Chris Rogers <crogers@google.com> 2 3 Fix web audio compile on mac port 4 https://bugs.webkit.org/show_bug.cgi?id=64836 5 6 Unreviewed build fix. 7 8 * bindings/js/JSAudioContextCustom.cpp: 9 (WebCore::JSAudioContextConstructor::constructJSAudioContext): 10 (WebCore::JSAudioContext::createBuffer): 11 1 12 2011-07-19 Jessie Berlin <jberlin@apple.com> 2 13 -
trunk/Source/WebCore/bindings/js/JSAudioContextCustom.cpp
r90853 r91319 94 94 if (ec) { 95 95 setDOMException(exec, ec); 96 return jsUndefined();96 return throwVMError(exec, createSyntaxError(exec, "Error creating OfflineAudioContext")); 97 97 } 98 98 } … … 139 139 140 140 if (numberOfChannels <= 0 || numberOfChannels > 10) 141 return throw VMError(exec, createSyntaxError(exec, "Invalid number of channels"));141 return throwError(exec, createSyntaxError(exec, "Invalid number of channels")); 142 142 143 143 if (numberOfFrames <= 0) 144 return throw VMError(exec, createSyntaxError(exec, "Invalid number of frames"));144 return throwError(exec, createSyntaxError(exec, "Invalid number of frames")); 145 145 146 146 if (sampleRate <= 0) 147 return throw VMError(exec, createSyntaxError(exec, "Invalid sample rate"));147 return throwError(exec, createSyntaxError(exec, "Invalid sample rate")); 148 148 149 149 RefPtr<AudioBuffer> audioBuffer = audioContext->createBuffer(numberOfChannels, numberOfFrames, sampleRate);
Note: See TracChangeset
for help on using the changeset viewer.