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
761b8137
authored
Nov 25, 2015
by
Oliver Woodman
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
Use API level 23 constants.
parent
72f093c4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
7 deletions
library/src/main/java/com/google/android/exoplayer/C.java
library/src/main/java/com/google/android/exoplayer/C.java
View file @
761b8137
...
@@ -70,19 +70,24 @@ public final class C {
...
@@ -70,19 +70,24 @@ public final class C {
@SuppressWarnings
(
"InlinedApi"
)
@SuppressWarnings
(
"InlinedApi"
)
public
static
final
int
ENCODING_E_AC3
=
AudioFormat
.
ENCODING_E_AC3
;
public
static
final
int
ENCODING_E_AC3
=
AudioFormat
.
ENCODING_E_AC3
;
// TODO: Switch these constants to use AudioFormat fields when the target API version is >= 23.
/**
// The inlined values here are for NVIDIA Shield devices which support DTS on earlier versions.
* @see AudioFormat#ENCODING_DTS
public
static
final
int
ENCODING_DTS
=
7
;
*/
public
static
final
int
ENCODING_DTS_HD
=
8
;
@SuppressWarnings
(
"InlinedApi"
)
public
static
final
int
ENCODING_DTS
=
AudioFormat
.
ENCODING_DTS
;
/**
* @see AudioFormat#ENCODING_DTS_HD
*/
@SuppressWarnings
(
"InlinedApi"
)
public
static
final
int
ENCODING_DTS_HD
=
AudioFormat
.
ENCODING_DTS_HD
;
// TODO: Change 6396 to AudioFormat.CHANNEL_OUT_7POINT1_SURROUND when the target API version is
// >= 23.
/**
/**
* @see AudioFormat#CHANNEL_OUT_7POINT1_SURROUND
* @see AudioFormat#CHANNEL_OUT_7POINT1_SURROUND
*/
*/
@SuppressWarnings
({
"InlinedApi"
,
"deprecation"
})
@SuppressWarnings
({
"InlinedApi"
,
"deprecation"
})
public
static
final
int
CHANNEL_OUT_7POINT1_SURROUND
=
Util
.
SDK_INT
<
23
public
static
final
int
CHANNEL_OUT_7POINT1_SURROUND
=
Util
.
SDK_INT
<
23
?
AudioFormat
.
CHANNEL_OUT_7POINT1
:
6396
;
?
AudioFormat
.
CHANNEL_OUT_7POINT1
:
AudioFormat
.
CHANNEL_OUT_7POINT1_SURROUND
;
/**
/**
* @see MediaExtractor#SAMPLE_FLAG_SYNC
* @see MediaExtractor#SAMPLE_FLAG_SYNC
...
...
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