| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2012, Google Inc. All rights reserved. | 2 * Copyright (C) 2012, 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 11 matching lines...) Expand all Loading... |
| 22 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 22 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 23 */ | 23 */ |
| 24 | 24 |
| 25 #ifndef OfflineAudioContext_h | 25 #ifndef OfflineAudioContext_h |
| 26 #define OfflineAudioContext_h | 26 #define OfflineAudioContext_h |
| 27 | 27 |
| 28 #include "modules/ModulesExport.h" | 28 #include "modules/ModulesExport.h" |
| 29 #include "modules/webaudio/AbstractAudioContext.h" | 29 #include "modules/webaudio/AbstractAudioContext.h" |
| 30 #include "wtf/HashMap.h" | 30 #include "wtf/HashMap.h" |
| 31 | 31 |
| 32 #if ENABLE(WEB_AUDIO) | |
| 33 | |
| 34 namespace blink { | 32 namespace blink { |
| 35 | 33 |
| 36 class ExceptionState; | 34 class ExceptionState; |
| 37 class OfflineAudioDestinationHandler; | 35 class OfflineAudioDestinationHandler; |
| 38 | 36 |
| 39 class MODULES_EXPORT OfflineAudioContext final : public AbstractAudioContext { | 37 class MODULES_EXPORT OfflineAudioContext final : public AbstractAudioContext { |
| 40 DEFINE_WRAPPERTYPEINFO(); | 38 DEFINE_WRAPPERTYPEINFO(); |
| 41 public: | 39 public: |
| 42 static OfflineAudioContext* create(ExecutionContext*, unsigned numberOfChann
els, size_t numberOfFrames, float sampleRate, ExceptionState&); | 40 static OfflineAudioContext* create(ExecutionContext*, unsigned numberOfChann
els, size_t numberOfFrames, float sampleRate, ExceptionState&); |
| 43 | 41 |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 110 // Note that initial state of context is 'Suspended', which is the same | 108 // Note that initial state of context is 'Suspended', which is the same |
| 111 // state when the context is suspended. | 109 // state when the context is suspended. |
| 112 bool m_isRenderingStarted; | 110 bool m_isRenderingStarted; |
| 113 | 111 |
| 114 // Total render sample length. | 112 // Total render sample length. |
| 115 size_t m_totalRenderFrames; | 113 size_t m_totalRenderFrames; |
| 116 }; | 114 }; |
| 117 | 115 |
| 118 } // namespace blink | 116 } // namespace blink |
| 119 | 117 |
| 120 #endif // ENABLE(WEB_AUDIO) | |
| 121 | |
| 122 #endif // OfflineAudioContext_h | 118 #endif // OfflineAudioContext_h |
| OLD | NEW |