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 { |
| 64 NOTREACHED(); |
| 65 return 0; |
| 66 } |
63 | 67 |
64 size_t renderQuantumFrames() const { | 68 size_t renderQuantumFrames() const { |
65 return AudioUtilities::kRenderQuantumFrames; | 69 return AudioUtilities::kRenderQuantumFrames; |
66 } | 70 } |
67 | 71 |
68 WebThread* offlineRenderThread(); | 72 WebThread* offlineRenderThread(); |
69 | 73 |
70 private: | 74 private: |
71 OfflineAudioDestinationHandler(AudioNode&, AudioBuffer* renderTarget); | 75 OfflineAudioDestinationHandler(AudioNode&, AudioBuffer* renderTarget); |
72 | 76 |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
125 static OfflineAudioDestinationNode* create(BaseAudioContext*, | 129 static OfflineAudioDestinationNode* create(BaseAudioContext*, |
126 AudioBuffer* renderTarget); | 130 AudioBuffer* renderTarget); |
127 | 131 |
128 private: | 132 private: |
129 OfflineAudioDestinationNode(BaseAudioContext&, AudioBuffer* renderTarget); | 133 OfflineAudioDestinationNode(BaseAudioContext&, AudioBuffer* renderTarget); |
130 }; | 134 }; |
131 | 135 |
132 } // namespace blink | 136 } // namespace blink |
133 | 137 |
134 #endif // OfflineAudioDestinationNode_h | 138 #endif // OfflineAudioDestinationNode_h |
OLD | NEW |