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.cpp73 void MediaElementAudioSourceNode::setFormat(size_t numberOfChannels, float sourceSampleRate) in setFormat() argument
75 if (numberOfChannels != m_sourceNumberOfChannels || sourceSampleRate != m_sourceSampleRate) { in setFormat()
76 …ontext::maxNumberOfChannels() || !AudioUtilities::isValidAudioBufferSampleRate(sourceSampleRate)) { in setFormat()
78 …mat(%u, %f) - unhandled format change", static_cast<unsigned>(numberOfChannels), sourceSampleRate); in setFormat()
85 m_sourceSampleRate = sourceSampleRate; in setFormat()
90 if (sourceSampleRate != sampleRate()) { in setFormat()
91 double scaleFactor = sourceSampleRate / sampleRate(); in setFormat()
DMediaStreamAudioSourceNode.cpp70 void MediaStreamAudioSourceNode::setFormat(size_t numberOfChannels, float sourceSampleRate) in setFormat() argument
72 if (numberOfChannels != m_sourceNumberOfChannels || sourceSampleRate != sampleRate()) { in setFormat()
74 …annels || numberOfChannels > AudioContext::maxNumberOfChannels() || sourceSampleRate != sampleRate… in setFormat()
76 …mat(%u, %f) - unhandled format change", static_cast<unsigned>(numberOfChannels), sourceSampleRate); in setFormat()
/external/chromium_org/third_party/WebKit/Source/platform/audio/
DAudioBus.cpp535 double sourceSampleRate = sourceBus->sampleRate(); in createBySampleRateConverting() local
537 double sampleRateRatio = sourceSampleRate / destinationSampleRate; in createBySampleRateConverting()
543 if (sourceSampleRate == destinationSampleRate) { in createBySampleRateConverting()