| 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 17 matching lines...) Expand all Loading... |
| 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 #include <memory> | 34 #include <memory> |
| 35 | 35 |
| 36 namespace blink { | 36 namespace blink { |
| 37 | 37 |
| 38 class AbstractAudioContext; | 38 class BaseAudioContext; |
| 39 class AudioBus; | 39 class AudioBus; |
| 40 class OfflineAudioContext; | 40 class OfflineAudioContext; |
| 41 | 41 |
| 42 class OfflineAudioDestinationHandler final : public AudioDestinationHandler { | 42 class OfflineAudioDestinationHandler final : public AudioDestinationHandler { |
| 43 public: | 43 public: |
| 44 static PassRefPtr<OfflineAudioDestinationHandler> create(AudioNode&, AudioBu
ffer* renderTarget); | 44 static PassRefPtr<OfflineAudioDestinationHandler> create(AudioNode&, AudioBu
ffer* renderTarget); |
| 45 ~OfflineAudioDestinationHandler() override; | 45 ~OfflineAudioDestinationHandler() override; |
| 46 | 46 |
| 47 // AudioHandler | 47 // AudioHandler |
| 48 void dispose() override; | 48 void dispose() override; |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 110 // 'created' and 'suspended'. If this flag is false and the current state | 110 // 'created' and 'suspended'. If this flag is false and the current state |
| 111 // is 'suspended', it means the context is created and have not started yet. | 111 // is 'suspended', it means the context is created and have not started yet. |
| 112 bool m_isRenderingStarted; | 112 bool m_isRenderingStarted; |
| 113 | 113 |
| 114 // This flag indicates whether the rendering should be suspended or not. | 114 // This flag indicates whether the rendering should be suspended or not. |
| 115 bool m_shouldSuspend; | 115 bool m_shouldSuspend; |
| 116 }; | 116 }; |
| 117 | 117 |
| 118 class OfflineAudioDestinationNode final : public AudioDestinationNode { | 118 class OfflineAudioDestinationNode final : public AudioDestinationNode { |
| 119 public: | 119 public: |
| 120 static OfflineAudioDestinationNode* create(AbstractAudioContext*, AudioBuffe
r* renderTarget); | 120 static OfflineAudioDestinationNode* create(BaseAudioContext*, AudioBuffer* r
enderTarget); |
| 121 | 121 |
| 122 private: | 122 private: |
| 123 OfflineAudioDestinationNode(AbstractAudioContext&, AudioBuffer* renderTarget
); | 123 OfflineAudioDestinationNode(BaseAudioContext&, AudioBuffer* renderTarget); |
| 124 }; | 124 }; |
| 125 | 125 |
| 126 } // namespace blink | 126 } // namespace blink |
| 127 | 127 |
| 128 #endif // OfflineAudioDestinationNode_h | 128 #endif // OfflineAudioDestinationNode_h |
| OLD | NEW |