Chromium Code Reviews| 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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 52 void initialize() override; | 52 void initialize() override; |
| 53 void uninitialize() override; | 53 void uninitialize() override; |
| 54 | 54 |
| 55 OfflineAudioContext* context() const final; | 55 OfflineAudioContext* context() const final; |
| 56 | 56 |
| 57 // AudioDestinationHandler | 57 // AudioDestinationHandler |
| 58 void startRendering() override; | 58 void startRendering() override; |
| 59 void stopRendering() override; | 59 void stopRendering() override; |
| 60 unsigned long maxChannelCount() const override; | 60 unsigned long maxChannelCount() const override; |
| 61 | 61 |
| 62 float sampleRate() const override { return m_renderTarget->sampleRate(); } | 62 double sampleRate() const override { return m_renderTarget->sampleRate(); } |
| 63 int framesPerBuffer() const override { return 0; } | |
|
o1ka
2016/12/02 12:02:13
Is it never expected to be called? DCHECK?
hongchan
2016/12/02 17:40:12
Or NOTREACHED().
Andrew MacPherson
2016/12/05 14:12:53
Done.
| |
| 63 | 64 |
| 64 size_t renderQuantumFrames() const { | 65 size_t renderQuantumFrames() const { |
| 65 return AudioUtilities::kRenderQuantumFrames; | 66 return AudioUtilities::kRenderQuantumFrames; |
| 66 } | 67 } |
| 67 | 68 |
| 68 WebThread* offlineRenderThread(); | 69 WebThread* offlineRenderThread(); |
| 69 | 70 |
| 70 private: | 71 private: |
| 71 OfflineAudioDestinationHandler(AudioNode&, AudioBuffer* renderTarget); | 72 OfflineAudioDestinationHandler(AudioNode&, AudioBuffer* renderTarget); |
| 72 | 73 |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 125 static OfflineAudioDestinationNode* create(BaseAudioContext*, | 126 static OfflineAudioDestinationNode* create(BaseAudioContext*, |
| 126 AudioBuffer* renderTarget); | 127 AudioBuffer* renderTarget); |
| 127 | 128 |
| 128 private: | 129 private: |
| 129 OfflineAudioDestinationNode(BaseAudioContext&, AudioBuffer* renderTarget); | 130 OfflineAudioDestinationNode(BaseAudioContext&, AudioBuffer* renderTarget); |
| 130 }; | 131 }; |
| 131 | 132 |
| 132 } // namespace blink | 133 } // namespace blink |
| 133 | 134 |
| 134 #endif // OfflineAudioDestinationNode_h | 135 #endif // OfflineAudioDestinationNode_h |
| OLD | NEW |