Bug 1061046. Part 16: Remove most usage of TicksToTimeRoundDown. r=karlt
authorRobert O'Callahan <robert@ocallahan.org>
Thu, 18 Sep 2014 17:13:16 +1200
changeset 216605 c7a1b6dd80e08c211f101a4ed36260e313311054
parent 216604 b93cef4c711270560af4aa9bc1b8c1b1c1c4c7bf
child 216606 76152dbfc842725560107d8e7581bab52dba7e8b
push idunknown
push userunknown
push dateunknown
reviewerskarlt
bugs1061046
milestone36.0a1
Bug 1061046. Part 16: Remove most usage of TicksToTimeRoundDown. r=karlt
dom/media/webaudio/AudioNodeStream.cpp
--- a/dom/media/webaudio/AudioNodeStream.cpp
+++ b/dom/media/webaudio/AudioNodeStream.cpp
@@ -619,15 +619,14 @@ AudioNodeStream::TicksFromDestinationTim
   return ticks;
 }
 
 double
 AudioNodeStream::DestinationTimeFromTicks(AudioNodeStream* aDestination,
                                           TrackTicks aPosition)
 {
   MOZ_ASSERT(SampleRate() == aDestination->SampleRate());
-  StreamTime sourceTime = TicksToTimeRoundDown(SampleRate(), aPosition);
-  GraphTime graphTime = StreamTimeToGraphTime(sourceTime);
+  GraphTime graphTime = StreamTimeToGraphTime(aPosition);
   StreamTime destinationTime = aDestination->GraphTimeToStreamTimeOptimistic(graphTime);
   return StreamTimeToSeconds(destinationTime);
 }
 
 }