зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1061046. Part 16: Remove most usage of TicksToTimeRoundDown. r=karlt
This commit is contained in:
Родитель
7b67a29b15
Коммит
eaa7374a1e
|
@ -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);
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче