OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2011, Google Inc. All rights reserved. | 2 * Copyright (C) 2011, 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 OfflineAudioDestinationNode_h | 25 #ifndef OfflineAudioDestinationNode_h |
26 #define OfflineAudioDestinationNode_h | 26 #define OfflineAudioDestinationNode_h |
27 | 27 |
28 #include "modules/webaudio/AudioBuffer.h" | 28 #include "modules/webaudio/AudioBuffer.h" |
29 #include "modules/webaudio/AudioDestinationNode.h" | 29 #include "modules/webaudio/AudioDestinationNode.h" |
30 #include "modules/webaudio/OfflineAudioContext.h" | 30 #include "modules/webaudio/OfflineAudioContext.h" |
31 #include "public/platform/WebThread.h" | 31 #include "public/platform/WebThread.h" |
32 #include "wtf/PassRefPtr.h" | 32 #include "wtf/PassRefPtr.h" |
33 #include "wtf/RefPtr.h" | 33 #include "wtf/RefPtr.h" |
34 | 34 |
35 #if ENABLE(WEB_AUDIO) | |
36 | |
37 namespace blink { | 35 namespace blink { |
38 | 36 |
39 class AbstractAudioContext; | 37 class AbstractAudioContext; |
40 class AudioBus; | 38 class AudioBus; |
41 class OfflineAudioContext; | 39 class OfflineAudioContext; |
42 | 40 |
43 class OfflineAudioDestinationHandler final : public AudioDestinationHandler { | 41 class OfflineAudioDestinationHandler final : public AudioDestinationHandler { |
44 public: | 42 public: |
45 static PassRefPtr<OfflineAudioDestinationHandler> create(AudioNode&, AudioBu
ffer* renderTarget); | 43 static PassRefPtr<OfflineAudioDestinationHandler> create(AudioNode&, AudioBu
ffer* renderTarget); |
46 ~OfflineAudioDestinationHandler() override; | 44 ~OfflineAudioDestinationHandler() override; |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
118 class OfflineAudioDestinationNode final : public AudioDestinationNode { | 116 class OfflineAudioDestinationNode final : public AudioDestinationNode { |
119 public: | 117 public: |
120 static OfflineAudioDestinationNode* create(AbstractAudioContext*, AudioBuffe
r* renderTarget); | 118 static OfflineAudioDestinationNode* create(AbstractAudioContext*, AudioBuffe
r* renderTarget); |
121 | 119 |
122 private: | 120 private: |
123 OfflineAudioDestinationNode(AbstractAudioContext&, AudioBuffer* renderTarget
); | 121 OfflineAudioDestinationNode(AbstractAudioContext&, AudioBuffer* renderTarget
); |
124 }; | 122 }; |
125 | 123 |
126 } // namespace blink | 124 } // namespace blink |
127 | 125 |
128 #endif // ENABLE(WEB_AUDIO) | |
129 | |
130 #endif // OfflineAudioDestinationNode_h | 126 #endif // OfflineAudioDestinationNode_h |
OLD | NEW |