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 20 matching lines...) Expand all Loading... |
31 | 31 |
32 #include "platform/audio/AudioBus.h" | 32 #include "platform/audio/AudioBus.h" |
33 #include "platform/audio/AudioIOCallback.h" | 33 #include "platform/audio/AudioIOCallback.h" |
34 #include "platform/audio/AudioSourceProvider.h" | 34 #include "platform/audio/AudioSourceProvider.h" |
35 #include "public/platform/WebAudioDevice.h" | 35 #include "public/platform/WebAudioDevice.h" |
36 #include "public/platform/WebVector.h" | 36 #include "public/platform/WebVector.h" |
37 #include "wtf/Allocator.h" | 37 #include "wtf/Allocator.h" |
38 #include "wtf/Noncopyable.h" | 38 #include "wtf/Noncopyable.h" |
39 #include "wtf/text/WTFString.h" | 39 #include "wtf/text/WTFString.h" |
40 | 40 |
41 #if ENABLE(WEB_AUDIO) | |
42 | |
43 namespace blink { | 41 namespace blink { |
44 | 42 |
45 class AudioFIFO; | 43 class AudioFIFO; |
46 class AudioPullFIFO; | 44 class AudioPullFIFO; |
47 | 45 |
48 // An AudioDestination using Chromium's audio system | 46 // An AudioDestination using Chromium's audio system |
49 | 47 |
50 class PLATFORM_EXPORT AudioDestination : public WebAudioDevice::RenderCallback,
public AudioSourceProvider { | 48 class PLATFORM_EXPORT AudioDestination : public WebAudioDevice::RenderCallback,
public AudioSourceProvider { |
51 USING_FAST_MALLOC(AudioDestination); | 49 USING_FAST_MALLOC(AudioDestination); |
52 WTF_MAKE_NONCOPYABLE(AudioDestination); | 50 WTF_MAKE_NONCOPYABLE(AudioDestination); |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
89 bool m_isPlaying; | 87 bool m_isPlaying; |
90 OwnPtr<WebAudioDevice> m_audioDevice; | 88 OwnPtr<WebAudioDevice> m_audioDevice; |
91 size_t m_callbackBufferSize; | 89 size_t m_callbackBufferSize; |
92 | 90 |
93 OwnPtr<AudioFIFO> m_inputFifo; | 91 OwnPtr<AudioFIFO> m_inputFifo; |
94 OwnPtr<AudioPullFIFO> m_fifo; | 92 OwnPtr<AudioPullFIFO> m_fifo; |
95 }; | 93 }; |
96 | 94 |
97 } // namespace blink | 95 } // namespace blink |
98 | 96 |
99 #endif // ENABLE(WEB_AUDIO) | |
100 | |
101 #endif // AudioDestination_h | 97 #endif // AudioDestination_h |
OLD | NEW |