Handling custom encoding values in default AudioTrackAudioOuput and DefaultAudioSink
@tianyif is already working on this.
Since May 18, 2026.
- Dominant language
- Java
- Stars
- 3k
- Forks
- 955
- Avg merge
- 12d 14h
- Merged PRs (30d)
- 2
Description
For some devices I need to use private custom encoding values unfortunately some things are private or final.
So 2 small questions:
-
In
defaultAudioSinkmaybeRampUpVolumeonly check that the mime is RAW but not the actual encoding like it's done inAudioTrackAudioOutputconstructor (I my case it not actual PCM so it should not applied) -
In
AudioTrackAudioOutputconstructor, in that case the isPCM only check the encoding and so is not used while I would still need to be able to pass a proper pcmFrameSize.
I can workaround with a custom sink, but maybe there's something I'm missing to fix those 2 cases ?
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.