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 13 matching lines...) Expand all Loading... |
24 */ | 24 */ |
25 | 25 |
26 #ifndef AudioDestinationNode_h | 26 #ifndef AudioDestinationNode_h |
27 #define AudioDestinationNode_h | 27 #define AudioDestinationNode_h |
28 | 28 |
29 #include "modules/webaudio/AudioBuffer.h" | 29 #include "modules/webaudio/AudioBuffer.h" |
30 #include "modules/webaudio/AudioNode.h" | 30 #include "modules/webaudio/AudioNode.h" |
31 #include "platform/audio/AudioBus.h" | 31 #include "platform/audio/AudioBus.h" |
32 #include "platform/audio/AudioIOCallback.h" | 32 #include "platform/audio/AudioIOCallback.h" |
33 #include "platform/audio/AudioSourceProvider.h" | 33 #include "platform/audio/AudioSourceProvider.h" |
| 34 #include "core/workers/WorkerThread.h" |
34 | 35 |
35 namespace blink { | 36 namespace blink { |
36 | 37 |
37 class AudioBus; | 38 class AudioBus; |
38 class BaseAudioContext; | 39 class BaseAudioContext; |
39 | 40 |
40 class AudioDestinationHandler : public AudioHandler, public AudioIOCallback { | 41 class AudioDestinationHandler : public AudioHandler, public AudioIOCallback { |
41 public: | 42 public: |
42 AudioDestinationHandler(AudioNode&); | 43 AudioDestinationHandler(AudioNode&); |
43 ~AudioDestinationHandler() override; | 44 ~AudioDestinationHandler() override; |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
121 unsigned long maxChannelCount() const; | 122 unsigned long maxChannelCount() const; |
122 size_t CallbackBufferSize() const { return Handler().CallbackBufferSize(); } | 123 size_t CallbackBufferSize() const { return Handler().CallbackBufferSize(); } |
123 | 124 |
124 protected: | 125 protected: |
125 AudioDestinationNode(BaseAudioContext&); | 126 AudioDestinationNode(BaseAudioContext&); |
126 }; | 127 }; |
127 | 128 |
128 } // namespace blink | 129 } // namespace blink |
129 | 130 |
130 #endif // AudioDestinationNode_h | 131 #endif // AudioDestinationNode_h |
OLD | NEW |