| 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 * | 7 * |
| 8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 56 | 56 |
| 57 // WebKit::WebAudioDevice::RenderCallback | 57 // WebKit::WebAudioDevice::RenderCallback |
| 58 virtual void render(const WebKit::WebVector<float*>& sourceData, const WebKi
t::WebVector<float*>& audioData, size_t numberOfFrames); | 58 virtual void render(const WebKit::WebVector<float*>& sourceData, const WebKi
t::WebVector<float*>& audioData, size_t numberOfFrames); |
| 59 | 59 |
| 60 // WebCore::AudioSourceProvider | 60 // WebCore::AudioSourceProvider |
| 61 virtual void provideInput(AudioBus*, size_t framesToProcess); | 61 virtual void provideInput(AudioBus*, size_t framesToProcess); |
| 62 | 62 |
| 63 private: | 63 private: |
| 64 AudioIOCallback& m_callback; | 64 AudioIOCallback& m_callback; |
| 65 unsigned m_numberOfOutputChannels; | 65 unsigned m_numberOfOutputChannels; |
| 66 AudioBus m_inputBus; | 66 RefPtr<AudioBus> m_inputBus; |
| 67 AudioBus m_renderBus; | 67 RefPtr<AudioBus> m_renderBus; |
| 68 float m_sampleRate; | 68 float m_sampleRate; |
| 69 bool m_isPlaying; | 69 bool m_isPlaying; |
| 70 OwnPtr<WebKit::WebAudioDevice> m_audioDevice; | 70 OwnPtr<WebKit::WebAudioDevice> m_audioDevice; |
| 71 size_t m_callbackBufferSize; | 71 size_t m_callbackBufferSize; |
| 72 | 72 |
| 73 OwnPtr<AudioFIFO> m_inputFifo; | 73 OwnPtr<AudioFIFO> m_inputFifo; |
| 74 OwnPtr<AudioPullFIFO> m_fifo; | 74 OwnPtr<AudioPullFIFO> m_fifo; |
| 75 }; | 75 }; |
| 76 | 76 |
| 77 } // namespace WebCore | 77 } // namespace WebCore |
| 78 | 78 |
| 79 #endif // AudioDestinationChromium_h | 79 #endif // AudioDestinationChromium_h |
| OLD | NEW |