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

Side by Side Diff: Source/core/platform/audio/chromium/AudioDestinationChromium.h

Issue 14628008: Require use of AudioBus::create() to avoid ref-counting issues (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Require use of Created 7 years, 7 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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
OLDNEW
« no previous file with comments | « Source/core/platform/audio/SincResampler.cpp ('k') | Source/core/platform/audio/chromium/AudioDestinationChromium.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698