| 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 14 matching lines...) Expand all Loading... |
| 25 #ifndef ScriptProcessorNode_h | 25 #ifndef ScriptProcessorNode_h |
| 26 #define ScriptProcessorNode_h | 26 #define ScriptProcessorNode_h |
| 27 | 27 |
| 28 #include "platform/audio/AudioBus.h" | 28 #include "platform/audio/AudioBus.h" |
| 29 #include "modules/webaudio/AudioNode.h" | 29 #include "modules/webaudio/AudioNode.h" |
| 30 #include "wtf/Forward.h" | 30 #include "wtf/Forward.h" |
| 31 #include "wtf/PassRefPtr.h" | 31 #include "wtf/PassRefPtr.h" |
| 32 #include "wtf/RefPtr.h" | 32 #include "wtf/RefPtr.h" |
| 33 #include "wtf/Vector.h" | 33 #include "wtf/Vector.h" |
| 34 | 34 |
| 35 namespace WebCore { | 35 namespace blink { |
| 36 | 36 |
| 37 class AudioBuffer; | 37 class AudioBuffer; |
| 38 class AudioContext; | 38 class AudioContext; |
| 39 class AudioProcessingEvent; | 39 class AudioProcessingEvent; |
| 40 | 40 |
| 41 // ScriptProcessorNode is an AudioNode which allows for arbitrary synthesis or p
rocessing directly using JavaScript. | 41 // ScriptProcessorNode is an AudioNode which allows for arbitrary synthesis or p
rocessing directly using JavaScript. |
| 42 // The API allows for a variable number of inputs and outputs, although it must
have at least one input or output. | 42 // The API allows for a variable number of inputs and outputs, although it must
have at least one input or output. |
| 43 // This basic implementation supports no more than one input and output. | 43 // This basic implementation supports no more than one input and output. |
| 44 // The "onaudioprocess" attribute is an event listener which will get called per
iodically with an AudioProcessingEvent which has | 44 // The "onaudioprocess" attribute is an event listener which will get called per
iodically with an AudioProcessingEvent which has |
| 45 // AudioBuffers for each input and output. | 45 // AudioBuffers for each input and output. |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 85 unsigned m_bufferReadWriteIndex; | 85 unsigned m_bufferReadWriteIndex; |
| 86 | 86 |
| 87 unsigned m_numberOfInputChannels; | 87 unsigned m_numberOfInputChannels; |
| 88 unsigned m_numberOfOutputChannels; | 88 unsigned m_numberOfOutputChannels; |
| 89 | 89 |
| 90 RefPtr<AudioBus> m_internalInputBus; | 90 RefPtr<AudioBus> m_internalInputBus; |
| 91 // Synchronize process() with fireProcessEvent(). | 91 // Synchronize process() with fireProcessEvent(). |
| 92 mutable Mutex m_processEventLock; | 92 mutable Mutex m_processEventLock; |
| 93 }; | 93 }; |
| 94 | 94 |
| 95 } // namespace WebCore | 95 } // namespace blink |
| 96 | 96 |
| 97 #endif // ScriptProcessorNode_h | 97 #endif // ScriptProcessorNode_h |
| OLD | NEW |