| 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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 53 #include "modules/webaudio/MediaElementAudioSourceNode.h" | 53 #include "modules/webaudio/MediaElementAudioSourceNode.h" |
| 54 #include "modules/webaudio/MediaStreamAudioDestinationNode.h" | 54 #include "modules/webaudio/MediaStreamAudioDestinationNode.h" |
| 55 #include "modules/webaudio/MediaStreamAudioSourceNode.h" | 55 #include "modules/webaudio/MediaStreamAudioSourceNode.h" |
| 56 #include "modules/webaudio/OfflineAudioCompletionEvent.h" | 56 #include "modules/webaudio/OfflineAudioCompletionEvent.h" |
| 57 #include "modules/webaudio/OfflineAudioContext.h" | 57 #include "modules/webaudio/OfflineAudioContext.h" |
| 58 #include "modules/webaudio/OfflineAudioDestinationNode.h" | 58 #include "modules/webaudio/OfflineAudioDestinationNode.h" |
| 59 #include "modules/webaudio/OscillatorNode.h" | 59 #include "modules/webaudio/OscillatorNode.h" |
| 60 #include "modules/webaudio/PannerNode.h" | 60 #include "modules/webaudio/PannerNode.h" |
| 61 #include "modules/webaudio/PeriodicWave.h" | 61 #include "modules/webaudio/PeriodicWave.h" |
| 62 #include "modules/webaudio/ScriptProcessorNode.h" | 62 #include "modules/webaudio/ScriptProcessorNode.h" |
| 63 #include "modules/webaudio/StereoPannerNode.h" |
| 63 #include "modules/webaudio/WaveShaperNode.h" | 64 #include "modules/webaudio/WaveShaperNode.h" |
| 64 #include "platform/audio/FFTFrame.h" | 65 #include "platform/audio/FFTFrame.h" |
| 65 #include "platform/audio/HRTFPanner.h" | 66 #include "platform/audio/HRTFPanner.h" |
| 66 #include "wtf/Atomics.h" | 67 #include "wtf/Atomics.h" |
| 67 #include "wtf/PassOwnPtr.h" | 68 #include "wtf/PassOwnPtr.h" |
| 68 #include "wtf/text/WTFString.h" | 69 #include "wtf/text/WTFString.h" |
| 69 | 70 |
| 70 #if DEBUG_AUDIONODE_REFERENCES | 71 #if DEBUG_AUDIONODE_REFERENCES |
| 71 #include <stdio.h> | 72 #include <stdio.h> |
| 72 #endif | 73 #endif |
| (...skipping 285 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 358 "buffer size (" + String::number(bufferSize) | 359 "buffer size (" + String::number(bufferSize) |
| 359 + ") must be a power of two between 256 and 16384."); | 360 + ") must be a power of two between 256 and 16384."); |
| 360 } | 361 } |
| 361 return 0; | 362 return 0; |
| 362 } | 363 } |
| 363 | 364 |
| 364 refNode(node); // context keeps reference until we stop making javascript re
ndering callbacks | 365 refNode(node); // context keeps reference until we stop making javascript re
ndering callbacks |
| 365 return node; | 366 return node; |
| 366 } | 367 } |
| 367 | 368 |
| 369 StereoPannerNode* AudioContext::createStereoPanner() |
| 370 { |
| 371 ASSERT(isMainThread()); |
| 372 return StereoPannerNode::create(this, m_destinationNode->sampleRate()); |
| 373 } |
| 374 |
| 368 BiquadFilterNode* AudioContext::createBiquadFilter() | 375 BiquadFilterNode* AudioContext::createBiquadFilter() |
| 369 { | 376 { |
| 370 ASSERT(isMainThread()); | 377 ASSERT(isMainThread()); |
| 371 return BiquadFilterNode::create(this, m_destinationNode->sampleRate()); | 378 return BiquadFilterNode::create(this, m_destinationNode->sampleRate()); |
| 372 } | 379 } |
| 373 | 380 |
| 374 WaveShaperNode* AudioContext::createWaveShaper() | 381 WaveShaperNode* AudioContext::createWaveShaper() |
| 375 { | 382 { |
| 376 ASSERT(isMainThread()); | 383 ASSERT(isMainThread()); |
| 377 return WaveShaperNode::create(this); | 384 return WaveShaperNode::create(this); |
| (...skipping 487 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 865 | 872 |
| 866 for (HashSet<AudioNode*>::iterator k = m_deferredCountModeChange.begin(); k
!= m_deferredCountModeChange.end(); ++k) | 873 for (HashSet<AudioNode*>::iterator k = m_deferredCountModeChange.begin(); k
!= m_deferredCountModeChange.end(); ++k) |
| 867 (*k)->updateChannelCountMode(); | 874 (*k)->updateChannelCountMode(); |
| 868 | 875 |
| 869 m_deferredCountModeChange.clear(); | 876 m_deferredCountModeChange.clear(); |
| 870 } | 877 } |
| 871 | 878 |
| 872 } // namespace blink | 879 } // namespace blink |
| 873 | 880 |
| 874 #endif // ENABLE(WEB_AUDIO) | 881 #endif // ENABLE(WEB_AUDIO) |
| OLD | NEW |