Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(199)

Side by Side Diff: third_party/WebKit/Source/platform/audio/AudioDestination.h

Issue 1557363002: Remove the WEB_AUDIO compile time flag (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698