| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2010, Google Inc. All rights reserved. | 2 * Copyright (C) 2010, Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
| 8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
| 9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
| 10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
| (...skipping 343 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 354 SyntaxError, | 354 SyntaxError, |
| 355 ExceptionMessages::failedToConstruct( | 355 ExceptionMessages::failedToConstruct( |
| 356 "AudioBuffer", | 356 "AudioBuffer", |
| 357 "invalid audio data in ArrayBuffer.")); | 357 "invalid audio data in ArrayBuffer.")); |
| 358 return 0; | 358 return 0; |
| 359 } | 359 } |
| 360 | 360 |
| 361 return audioBuffer; | 361 return audioBuffer; |
| 362 } | 362 } |
| 363 | 363 |
| 364 void AudioContext::decodeAudioData(ArrayBuffer* audioData, PassRefPtr<AudioBuffe
rCallback> successCallback, PassRefPtr<AudioBufferCallback> errorCallback, Excep
tionState& exceptionState) | 364 void AudioContext::decodeAudioData(ArrayBuffer* audioData, PassOwnPtr<AudioBuffe
rCallback> successCallback, PassOwnPtr<AudioBufferCallback> errorCallback, Excep
tionState& exceptionState) |
| 365 { | 365 { |
| 366 if (!audioData) { | 366 if (!audioData) { |
| 367 exceptionState.throwDOMException( | 367 exceptionState.throwDOMException( |
| 368 SyntaxError, | 368 SyntaxError, |
| 369 ExceptionMessages::failedToExecute( | 369 ExceptionMessages::failedToExecute( |
| 370 "decodeAudioData", | 370 "decodeAudioData", |
| 371 "AudioContext", | 371 "AudioContext", |
| 372 "invalid ArrayBuffer for audioData.")); | 372 "invalid ArrayBuffer for audioData.")); |
| 373 return; | 373 return; |
| 374 } | 374 } |
| (...skipping 727 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1102 } | 1102 } |
| 1103 | 1103 |
| 1104 void AudioContext::decrementActiveSourceCount() | 1104 void AudioContext::decrementActiveSourceCount() |
| 1105 { | 1105 { |
| 1106 atomicDecrement(&m_activeSourceCount); | 1106 atomicDecrement(&m_activeSourceCount); |
| 1107 } | 1107 } |
| 1108 | 1108 |
| 1109 } // namespace WebCore | 1109 } // namespace WebCore |
| 1110 | 1110 |
| 1111 #endif // ENABLE(WEB_AUDIO) | 1111 #endif // ENABLE(WEB_AUDIO) |
| OLD | NEW |