-
Notifications
You must be signed in to change notification settings - Fork 6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support playback speed adjustment + silence skipping for ENCODING_PCM_FLOAT #7134
Labels
Comments
Closed
ojw28
added a commit
that referenced
this issue
Mar 25, 2020
This is a no-op for DefaultAudioSink for now, because DefaultAudioSink currently disables processing anyway if the input uses ENCODING_PCM_FLOAT. Issue: #7134 PiperOrigin-RevId: 302670534
ojw28
added a commit
that referenced
this issue
Mar 25, 2020
It's incorrect to use an AudioFormat returned from AudioProcessor.configure unless the AudioProcessor is active. Issue: #7134 PiperOrigin-RevId: 302674132
ojw28
added a commit
that referenced
this issue
Mar 25, 2020
This is less confusing than having audio processing functionality (e.g., playback speed adjustment) just "not work" for some pieces of media. If this change is merged, I will update #6749 to also track making DefaultAudioSink intelligently enable/disable float output depending on how the audio processors are configured. Issue: #7134 PiperOrigin-RevId: 302871568
ojw28
added a commit
that referenced
this issue
Mar 30, 2020
This is a no-op for DefaultAudioSink for now, because DefaultAudioSink currently disables processing anyway if the input uses ENCODING_PCM_FLOAT. Issue: #7134 PiperOrigin-RevId: 302670534
ojw28
added a commit
that referenced
this issue
Mar 30, 2020
It's incorrect to use an AudioFormat returned from AudioProcessor.configure unless the AudioProcessor is active. Issue: #7134 PiperOrigin-RevId: 302674132
ojw28
added a commit
that referenced
this issue
Mar 30, 2020
This is less confusing than having audio processing functionality (e.g., playback speed adjustment) just "not work" for some pieces of media. If this change is merged, I will update #6749 to also track making DefaultAudioSink intelligently enable/disable float output depending on how the audio processors are configured. Issue: #7134 PiperOrigin-RevId: 302871568
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Playback speed adjustment and silence skipping (and possibly custom audio processing injected by the application) are currently disabled by
DefaultAudioSink
if the input usesENCODING_PCM_FLOAT
.I think the idea of this is to avoid resampling 32-bit floating point into into 16-bit integer precision PCM. However, in cases where we actually want to do processing that changes the audio, such as playback speed adjustment and silence skipping, then that should take precedence and we should resample to 16-bit integer precision to enable that processing to take place.
The text was updated successfully, but these errors were encountered: