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

Unified Diff: Source/platform/audio/AudioDestination.cpp

Issue 458313005: Cleanup namespace usage from animation to exported in platform/ (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Cleanup namespace usage from animation to exported in platform/ Created 6 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/platform/audio/AudioDestination.h ('k') | Source/platform/audio/AudioDestinationConsumer.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/audio/AudioDestination.cpp
diff --git a/Source/platform/audio/AudioDestination.cpp b/Source/platform/audio/AudioDestination.cpp
index 6a9e1dea2408bf45ef50b7d8fd1403a084c603d1..946a05440a5050b31fd92bf695b77017d3b72343 100644
--- a/Source/platform/audio/AudioDestination.cpp
+++ b/Source/platform/audio/AudioDestination.cpp
@@ -59,7 +59,7 @@ AudioDestination::AudioDestination(AudioIOCallback& callback, const String& inpu
, m_isPlaying(false)
{
// Use the optimal buffer size recommended by the audio backend.
- m_callbackBufferSize = blink::Platform::current()->audioHardwareBufferSize();
+ m_callbackBufferSize = Platform::current()->audioHardwareBufferSize();
#if OS(ANDROID)
// The optimum low-latency hardware buffer size is usually too small on Android for WebAudio to
@@ -82,7 +82,7 @@ AudioDestination::AudioDestination(AudioIOCallback& callback, const String& inpu
if (m_callbackBufferSize + renderBufferSize > fifoSize)
return;
- m_audioDevice = adoptPtr(blink::Platform::current()->createAudioDevice(m_callbackBufferSize, numberOfInputChannels, numberOfOutputChannels, sampleRate, this, inputDeviceId));
+ m_audioDevice = adoptPtr(Platform::current()->createAudioDevice(m_callbackBufferSize, numberOfInputChannels, numberOfOutputChannels, sampleRate, this, inputDeviceId));
ASSERT(m_audioDevice);
// Create a FIFO to handle the possibility of the callback size
@@ -127,15 +127,15 @@ void AudioDestination::stop()
float AudioDestination::hardwareSampleRate()
{
- return static_cast<float>(blink::Platform::current()->audioHardwareSampleRate());
+ return static_cast<float>(Platform::current()->audioHardwareSampleRate());
}
unsigned long AudioDestination::maxChannelCount()
{
- return static_cast<float>(blink::Platform::current()->audioHardwareOutputChannels());
+ return static_cast<float>(Platform::current()->audioHardwareOutputChannels());
}
-void AudioDestination::render(const blink::WebVector<float*>& sourceData, const blink::WebVector<float*>& audioData, size_t numberOfFrames)
+void AudioDestination::render(const WebVector<float*>& sourceData, const WebVector<float*>& audioData, size_t numberOfFrames)
{
bool isNumberOfChannelsGood = audioData.size() == m_numberOfOutputChannels;
if (!isNumberOfChannelsGood) {
« no previous file with comments | « Source/platform/audio/AudioDestination.h ('k') | Source/platform/audio/AudioDestinationConsumer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698