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
e22c42c7
authored
Dec 01, 2016
by
Drew Hill
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
requested changes for simplicity
parent
db4b478c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
6 deletions
library/src/main/java/com/google/android/exoplayer2/audio/AudioTrack.java
library/src/main/java/com/google/android/exoplayer2/audio/AudioTrack.java
View file @
e22c42c7
...
...
@@ -441,16 +441,14 @@ public final class AudioTrack {
default
:
throw
new
IllegalArgumentException
(
"Unsupported channel count: "
+
channelCount
);
}
boolean
passthrough
=
!
MimeTypes
.
AUDIO_RAW
.
equals
(
mimeType
);
if
(
Util
.
SDK_INT
<=
23
&&
"foster"
.
equals
(
Util
.
DEVICE
)
&&
"NVIDIA"
.
equals
(
Util
.
MANUFACTURER
))
{
if
(
channelCo
nfig
==
(
AudioFormat
.
CHANNEL_OUT_5POINT1
|
AudioFormat
.
CHANNEL_OUT_BACK_CENTER
)
)
if
(
channelCo
unt
==
7
)
channelConfig
=
C
.
CHANNEL_OUT_7POINT1_SURROUND
;
else
if
(
channelConfig
==
(
AudioFormat
.
CHANNEL_OUT_QUAD
|
AudioFormat
.
CHANNEL_OUT_FRONT_CENTER
)
||
channelConfig
==
(
AudioFormat
.
CHANNEL_OUT_QUAD
)
||
channelConfig
==
(
AudioFormat
.
CHANNEL_OUT_STEREO
|
AudioFormat
.
CHANNEL_OUT_FRONT_CENTER
))
else
if
(
channelCount
>=
3
&&
channelCount
<=
5
)
channelConfig
=
AudioFormat
.
CHANNEL_OUT_5POINT1
;
}
boolean
passthrough
=
!
MimeTypes
.
AUDIO_RAW
.
equals
(
mimeType
);
@C
.
Encoding
int
sourceEncoding
;
if
(
passthrough
)
{
sourceEncoding
=
getEncodingForMimeType
(
mimeType
);
...
...
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