diff --git a/dom/media/webaudio/AudioBufferSourceNode.cpp b/dom/media/webaudio/AudioBufferSourceNode.cpp index 033c68850132..3e2df060cef1 100644 --- a/dom/media/webaudio/AudioBufferSourceNode.cpp +++ b/dom/media/webaudio/AudioBufferSourceNode.cpp @@ -97,7 +97,7 @@ public: switch (aIndex) { case AudioBufferSourceNode::START: MOZ_ASSERT(!mStart, "Another START?"); - mStart = mDestination->SecondsToNearestStreamTime(aParam); + mStart = aParam * mDestination->SampleRate(); // Round to nearest mBeginProcessing = mStart + 0.5; break;