Skip to content

Better support for PCM audio formats around DefaultAudioSink #2445

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

nift4
Copy link

@nift4 nift4 commented May 19, 2025

This change:

  • abstracts away the fact that SonicAudioProcessor does not support float PCM from the audio sink to the audio processor chain (easier to replace)
  • makes the audio sink allow custom audio processors with any output format
  • adds DSD and double PCM format definitions to allow passing these around for internal signal processing
  • adds a new mode to DefaultAudioSink that allows any supported linear PCM format to be output into the AudioTrack

Issue: google/ExoPlayer#10516
Issue: #1931

This change:
- abstracts away the fact that SonicAudioProcessor does not support float PCM
  from the audio sink to the audio processor chain (easier to replace)
- makes the audio sink allow custom audio processors with any output format
- adds DSD and double PCM format definitions to allow passing these around
  for internal signal processing
- adds a new mode to DefaultAudioSink that allows any supported linear PCM format
  to be output into the AudioTrack

Issue: google/ExoPlayer#10516
Issue: androidx#1931
@nift4 nift4 force-pushed the outputformatext branch from d5cb10b to 77bccf6 Compare May 27, 2025 17:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants