Home
last modified time | relevance | path

Searched refs:sourceSampleRate (Results 1 – 3 of 3) sorted by relevance

/external/chromium_org/third_party/WebKit/Source/modules/webaudio/
DMediaElementAudioSourceNode.cpp69 void MediaElementAudioSourceNode::setFormat(size_t numberOfChannels, float sourceSampleRate) in setFormat() argument
71 if (numberOfChannels != m_sourceNumberOfChannels || sourceSampleRate != m_sourceSampleRate) { in setFormat()
72 …Channels > AudioContext::maxNumberOfChannels() || sourceSampleRate < minSampleRate || sourceSample… in setFormat()
74 …mat(%u, %f) - unhandled format change", static_cast<unsigned>(numberOfChannels), sourceSampleRate); in setFormat()
81 m_sourceSampleRate = sourceSampleRate; in setFormat()
86 if (sourceSampleRate != sampleRate()) { in setFormat()
87 double scaleFactor = sourceSampleRate / sampleRate(); in setFormat()
DMediaStreamAudioSourceNode.cpp64 void MediaStreamAudioSourceNode::setFormat(size_t numberOfChannels, float sourceSampleRate) in setFormat() argument
66 if (numberOfChannels != m_sourceNumberOfChannels || sourceSampleRate != sampleRate()) { in setFormat()
68 …annels || numberOfChannels > AudioContext::maxNumberOfChannels() || sourceSampleRate != sampleRate… in setFormat()
70 …mat(%u, %f) - unhandled format change", static_cast<unsigned>(numberOfChannels), sourceSampleRate); in setFormat()
/external/chromium_org/third_party/WebKit/Source/platform/audio/
DAudioBus.cpp532 double sourceSampleRate = sourceBus->sampleRate(); in createBySampleRateConverting() local
534 double sampleRateRatio = sourceSampleRate / destinationSampleRate; in createBySampleRateConverting()
540 if (sourceSampleRate == destinationSampleRate) { in createBySampleRateConverting()