Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 /* | 1 /* |
| 2 * Copyright (C) 2010, Google Inc. All rights reserved. | 2 * Copyright (C) 2010, 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 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 159 | 159 |
| 160 // Compute playback rate (k-rate) by incorporating the sample rate | 160 // Compute playback rate (k-rate) by incorporating the sample rate |
| 161 // conversion factor, and the value of playbackRate and detune AudioParams. | 161 // conversion factor, and the value of playbackRate and detune AudioParams. |
| 162 double computePlaybackRate(); | 162 double computePlaybackRate(); |
| 163 | 163 |
| 164 // The minimum playbackRate value ever used for this source. | 164 // The minimum playbackRate value ever used for this source. |
| 165 double m_minPlaybackRate; | 165 double m_minPlaybackRate; |
| 166 }; | 166 }; |
| 167 | 167 |
| 168 class AudioBufferSourceNode final : public AudioScheduledSourceNode { | 168 class AudioBufferSourceNode final : public AudioScheduledSourceNode { |
| 169 USING_GARBAGE_COLLECTED_MIXIN(AudioBufferSourceNode); | |
|
haraken
2016/12/03 02:06:58
We won't need this.
Raymond Toy
2016/12/05 16:44:54
Done.
| |
| 169 DEFINE_WRAPPERTYPEINFO(); | 170 DEFINE_WRAPPERTYPEINFO(); |
| 170 | 171 |
| 171 public: | 172 public: |
| 172 static AudioBufferSourceNode* create(BaseAudioContext&, ExceptionState&); | 173 static AudioBufferSourceNode* create(BaseAudioContext&, ExceptionState&); |
| 173 static AudioBufferSourceNode* create(BaseAudioContext*, | 174 static AudioBufferSourceNode* create(BaseAudioContext*, |
| 174 AudioBufferSourceOptions&, | 175 AudioBufferSourceOptions&, |
| 175 ExceptionState&); | 176 ExceptionState&); |
| 176 DECLARE_VIRTUAL_TRACE(); | 177 DECLARE_VIRTUAL_TRACE(); |
| 177 AudioBufferSourceHandler& audioBufferSourceHandler() const; | 178 AudioBufferSourceHandler& audioBufferSourceHandler() const; |
| 178 | 179 |
| (...skipping 19 matching lines...) Expand all Loading... | |
| 198 private: | 199 private: |
| 199 AudioBufferSourceNode(BaseAudioContext&); | 200 AudioBufferSourceNode(BaseAudioContext&); |
| 200 | 201 |
| 201 Member<AudioParam> m_playbackRate; | 202 Member<AudioParam> m_playbackRate; |
| 202 Member<AudioParam> m_detune; | 203 Member<AudioParam> m_detune; |
| 203 }; | 204 }; |
| 204 | 205 |
| 205 } // namespace blink | 206 } // namespace blink |
| 206 | 207 |
| 207 #endif // AudioBufferSourceNode_h | 208 #endif // AudioBufferSourceNode_h |
| OLD | NEW |