| 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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 46 // AudioHandler | 46 // AudioHandler |
| 47 void dispose() override; | 47 void dispose() override; |
| 48 void initialize() override; | 48 void initialize() override; |
| 49 void uninitialize() override; | 49 void uninitialize() override; |
| 50 | 50 |
| 51 OfflineAudioContext* context() const final; | 51 OfflineAudioContext* context() const final; |
| 52 | 52 |
| 53 // AudioDestinationHandler | 53 // AudioDestinationHandler |
| 54 void startRendering() override; | 54 void startRendering() override; |
| 55 void stopRendering() override; | 55 void stopRendering() override; |
| 56 unsigned long maxChannelCount() const override; |
| 56 | 57 |
| 57 float sampleRate() const override { return m_renderTarget->sampleRate(); } | 58 float sampleRate() const override { return m_renderTarget->sampleRate(); } |
| 58 | 59 |
| 59 size_t renderQuantumFrames() const { return renderQuantumSize; } | 60 size_t renderQuantumFrames() const { return renderQuantumSize; } |
| 60 | 61 |
| 61 WebThread* offlineRenderThread(); | 62 WebThread* offlineRenderThread(); |
| 62 | 63 |
| 63 private: | 64 private: |
| 64 OfflineAudioDestinationHandler(AudioNode&, AudioBuffer* renderTarget); | 65 OfflineAudioDestinationHandler(AudioNode&, AudioBuffer* renderTarget); |
| 65 | 66 |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 117 public: | 118 public: |
| 118 static OfflineAudioDestinationNode* create(AbstractAudioContext*, AudioBuffe
r* renderTarget); | 119 static OfflineAudioDestinationNode* create(AbstractAudioContext*, AudioBuffe
r* renderTarget); |
| 119 | 120 |
| 120 private: | 121 private: |
| 121 OfflineAudioDestinationNode(AbstractAudioContext&, AudioBuffer* renderTarget
); | 122 OfflineAudioDestinationNode(AbstractAudioContext&, AudioBuffer* renderTarget
); |
| 122 }; | 123 }; |
| 123 | 124 |
| 124 } // namespace blink | 125 } // namespace blink |
| 125 | 126 |
| 126 #endif // OfflineAudioDestinationNode_h | 127 #endif // OfflineAudioDestinationNode_h |
| OLD | NEW |