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
563f13a8
authored
Aug 07, 2018
by
Oliver Woodman
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
Adjust trim silence parameters to make it less aggressive.
parent
74ac722b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
library/core/src/main/java/com/google/android/exoplayer2/audio/SilenceSkippingAudioProcessor.java
library/core/src/main/java/com/google/android/exoplayer2/audio/SilenceSkippingAudioProcessor.java
View file @
563f13a8
...
@@ -33,12 +33,12 @@ public final class SilenceSkippingAudioProcessor implements AudioProcessor {
...
@@ -33,12 +33,12 @@ public final class SilenceSkippingAudioProcessor implements AudioProcessor {
* The minimum duration of audio that must be below {@link #SILENCE_THRESHOLD_LEVEL} to classify
* The minimum duration of audio that must be below {@link #SILENCE_THRESHOLD_LEVEL} to classify
* that part of audio as silent, in microseconds.
* that part of audio as silent, in microseconds.
*/
*/
private
static
final
long
MINIMUM_SILENCE_DURATION_US
=
1
0
0_000
;
private
static
final
long
MINIMUM_SILENCE_DURATION_US
=
1
5
0_000
;
/**
/**
* The duration of silence by which to extend non-silent sections, in microseconds. The value must
* The duration of silence by which to extend non-silent sections, in microseconds. The value must
* not exceed {@link #MINIMUM_SILENCE_DURATION_US}.
* not exceed {@link #MINIMUM_SILENCE_DURATION_US}.
*/
*/
private
static
final
long
PADDING_SILENCE_US
=
1
0_000
;
private
static
final
long
PADDING_SILENCE_US
=
2
0_000
;
/**
/**
* The absolute level below which an individual PCM sample is classified as silent. Note: the
* The absolute level below which an individual PCM sample is classified as silent. Note: the
* specified value will be rounded so that the threshold check only depends on the more
* specified value will be rounded so that the threshold check only depends on the more
...
...
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