From 145e3645210d664d659e30a6632935cf0c12bb91 Mon Sep 17 00:00:00 2001 From: Karl Tomlinson Date: Thu, 15 Oct 2015 18:56:56 +1300 Subject: [PATCH] bug 1214493 restore fractional start time accidentally rounded in 13e85dc6b41b r=padenot --HG-- extra : rebase_source : 524269e54597bffcdeafc96940cbe14b8850c6a7 --- dom/media/webaudio/AudioBufferSourceNode.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;