Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
SDK
/
exoplayer
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
250cab2d
authored
May 22, 2015
by
Oliver Woodman
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
Fix AudioTrack typos.
Issue: #479
parent
30011285
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
library/src/main/java/com/google/android/exoplayer/audio/AudioTrack.java
library/src/main/java/com/google/android/exoplayer/audio/AudioTrack.java
View file @
250cab2d
...
@@ -449,7 +449,7 @@ public final class AudioTrack {
...
@@ -449,7 +449,7 @@ public final class AudioTrack {
// This is the first time we've seen this {@code buffer}.
// This is the first time we've seen this {@code buffer}.
// Note: presentationTimeUs corresponds to the end of the sample, not the start.
// Note: presentationTimeUs corresponds to the end of the sample, not the start.
long
bufferStartTime
=
presentationTimeUs
-
framesToDurationUs
(
bytesToFrames
(
size
));
long
bufferStartTime
=
presentationTimeUs
-
framesToDurationUs
(
bytesToFrames
(
size
));
if
(
startMediaTime
Us
==
START_NOT_SET
)
{
if
(
startMediaTime
State
==
START_NOT_SET
)
{
startMediaTimeUs
=
Math
.
max
(
0
,
bufferStartTime
);
startMediaTimeUs
=
Math
.
max
(
0
,
bufferStartTime
);
startMediaTimeState
=
START_IN_SYNC
;
startMediaTimeState
=
START_IN_SYNC
;
}
else
{
}
else
{
...
@@ -573,7 +573,7 @@ public final class AudioTrack {
...
@@ -573,7 +573,7 @@ public final class AudioTrack {
if
(
isInitialized
())
{
if
(
isInitialized
())
{
submittedBytes
=
0
;
submittedBytes
=
0
;
temporaryBufferSize
=
0
;
temporaryBufferSize
=
0
;
startMediaTime
Us
=
START_NOT_SET
;
startMediaTime
State
=
START_NOT_SET
;
latencyUs
=
0
;
latencyUs
=
0
;
resetSyncParams
();
resetSyncParams
();
int
playState
=
audioTrack
.
getPlayState
();
int
playState
=
audioTrack
.
getPlayState
();
...
@@ -623,7 +623,7 @@ public final class AudioTrack {
...
@@ -623,7 +623,7 @@ public final class AudioTrack {
/** Returns whether {@link #getCurrentPositionUs} can return the current playback position. */
/** Returns whether {@link #getCurrentPositionUs} can return the current playback position. */
private
boolean
hasCurrentPositionUs
()
{
private
boolean
hasCurrentPositionUs
()
{
return
isInitialized
()
&&
startMediaTime
Us
!=
START_NOT_SET
;
return
isInitialized
()
&&
startMediaTime
State
!=
START_NOT_SET
;
}
}
/** Updates the audio track latency and playback position parameters. */
/** Updates the audio track latency and playback position parameters. */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment