mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-28 05:10:49 +00:00
Bug 848954 - Part 24 - Clean up the clock getter, because the right thing is now done by the GraphDriver. r=roc
This commit is contained in:
parent
e2c00fc640
commit
f408b70e40
@ -334,15 +334,9 @@ MediaStreamGraphImpl::StreamTimeToGraphTime(MediaStream* aStream,
|
||||
GraphTime
|
||||
MediaStreamGraphImpl::GetAudioPosition(MediaStream* aStream)
|
||||
{
|
||||
if (!mMixedAudioStream) {
|
||||
return IterationEnd();
|
||||
}
|
||||
int64_t positionInFrames = mMixedAudioStream->GetPositionInFrames();
|
||||
if (positionInFrames < 0) {
|
||||
return IterationEnd();
|
||||
}
|
||||
return aStream->mAudioOutputStreams[0].mAudioPlaybackStartTime +
|
||||
RateConvertTicksRoundDown(GraphRate(), mSampleRate, positionInFrames);
|
||||
/* This is correlated to the audio clock when using an AudioCallbackDriver,
|
||||
* and is using a system timer otherwise. */
|
||||
return IterationEnd();
|
||||
}
|
||||
|
||||
GraphTime
|
||||
|
Loading…
x
Reference in New Issue
Block a user