Bug 1061046. Part 16: Remove most usage of TicksToTimeRoundDown. r=karlt

This commit is contained in:
Robert O'Callahan 2014-09-18 17:13:16 +12:00
parent 7b67a29b15
commit eaa7374a1e

View File

@ -624,8 +624,7 @@ 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);
}