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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
57 // AudioNode | 57 // AudioNode |
58 virtual void process(size_t framesToProcess); | 58 virtual void process(size_t framesToProcess); |
59 virtual void reset(); | 59 virtual void reset(); |
60 virtual void initialize(); | 60 virtual void initialize(); |
61 virtual void uninitialize(); | 61 virtual void uninitialize(); |
62 | 62 |
63 size_t bufferSize() const { return m_bufferSize; } | 63 size_t bufferSize() const { return m_bufferSize; } |
64 | 64 |
65 DEFINE_ATTRIBUTE_EVENT_LISTENER(audioprocess); | 65 DEFINE_ATTRIBUTE_EVENT_LISTENER(audioprocess); |
66 | 66 |
67 | 67 |
68 private: | 68 private: |
69 virtual double tailTime() const OVERRIDE; | 69 virtual double tailTime() const OVERRIDE; |
70 virtual double latencyTime() const OVERRIDE; | 70 virtual double latencyTime() const OVERRIDE; |
71 | 71 |
72 ScriptProcessorNode(AudioContext*, float sampleRate, size_t bufferSize, unsi
gned numberOfInputChannels, unsigned numberOfOutputChannels); | 72 ScriptProcessorNode(AudioContext*, float sampleRate, size_t bufferSize, unsi
gned numberOfInputChannels, unsigned numberOfOutputChannels); |
73 | 73 |
74 static void fireProcessEventDispatch(void* userData); | 74 static void fireProcessEventDispatch(void* userData); |
75 void fireProcessEvent(); | 75 void fireProcessEvent(); |
76 | 76 |
77 // Double buffering | 77 // Double buffering |
(...skipping 10 matching lines...) Expand all Loading... |
88 | 88 |
89 unsigned m_numberOfInputChannels; | 89 unsigned m_numberOfInputChannels; |
90 unsigned m_numberOfOutputChannels; | 90 unsigned m_numberOfOutputChannels; |
91 | 91 |
92 RefPtr<AudioBus> m_internalInputBus; | 92 RefPtr<AudioBus> m_internalInputBus; |
93 }; | 93 }; |
94 | 94 |
95 } // namespace WebCore | 95 } // namespace WebCore |
96 | 96 |
97 #endif // ScriptProcessorNode_h | 97 #endif // ScriptProcessorNode_h |
OLD | NEW |