Skip to content

Commit

Permalink
audio tracking fix: google#6
Browse files Browse the repository at this point in the history
  • Loading branch information
yuliskov committed Feb 11, 2019
1 parent 3bfb296 commit 968ab88
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -513,7 +513,7 @@ private long getPlaybackHeadPosition() {
} else {
AudioTimestamp timestamp = new AudioTimestamp();
audioTrack.getTimestamp(timestamp);
rawPlaybackHeadPosition = timestamp.framePosition + (System.nanoTime() - timestamp.nanoTime) * outputSampleRate / 0x1e9;
rawPlaybackHeadPosition = timestamp.framePosition + (System.nanoTime() - timestamp.nanoTime) * outputSampleRate / (long) 1e9;
}

if (needsPassthroughWorkarounds) {
Expand Down

0 comments on commit 968ab88

Please sign in to comment.