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
57ee90a9
authored
Nov 17, 2015
by
Oliver Woodman
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
Clean up AudioTrack.
parent
a4f1e3ce
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
2 deletions
extensions/opus/src/main/java/com/google/android/exoplayer/ext/opus/LibopusAudioTrackRenderer.java
library/src/main/java/com/google/android/exoplayer/MediaCodecAudioTrackRenderer.java
library/src/main/java/com/google/android/exoplayer/audio/AudioTrack.java
extensions/opus/src/main/java/com/google/android/exoplayer/ext/opus/LibopusAudioTrackRenderer.java
View file @
57ee90a9
...
...
@@ -385,7 +385,7 @@ public final class LibopusAudioTrackRenderer extends SampleSourceTrackRenderer
int
result
=
readSource
(
positionUs
,
formatHolder
,
null
,
false
);
if
(
result
==
SampleSource
.
FORMAT_READ
)
{
format
=
formatHolder
.
format
;
audioTrack
.
re
configure
(
format
.
getFrameworkMediaFormatV16
(),
false
);
audioTrack
.
configure
(
format
.
getFrameworkMediaFormatV16
(),
false
);
return
true
;
}
return
false
;
...
...
library/src/main/java/com/google/android/exoplayer/MediaCodecAudioTrackRenderer.java
View file @
57ee90a9
...
...
@@ -246,7 +246,7 @@ public class MediaCodecAudioTrackRenderer extends MediaCodecTrackRenderer implem
@Override
protected
void
onOutputFormatChanged
(
android
.
media
.
MediaFormat
outputFormat
)
{
boolean
passthrough
=
passthroughMediaFormat
!=
null
;
audioTrack
.
re
configure
(
passthrough
?
passthroughMediaFormat
:
outputFormat
,
passthrough
);
audioTrack
.
configure
(
passthrough
?
passthroughMediaFormat
:
outputFormat
,
passthrough
);
}
/**
...
...
library/src/main/java/com/google/android/exoplayer/audio/AudioTrack.java
View file @
57ee90a9
This diff is collapsed.
Click to expand it.
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