androidx / media

Jetpack Media3 support libraries for media use cases, including ExoPlayer, an extensible media player for Android
https://developer.android.com/media/media3
Apache License 2.0
1.71k stars 408 forks source link

How to switch between mono and stereo? #1714

Open Ishan09811 opened 2 months ago

rohitjoins commented 2 months ago

Just a guess: Is this related to switching between different audio tracks in ExoPlayer?

It would be great if you could provide more details by filling out the issue template.

Ishan09811 commented 2 months ago

Actually I want to change the audio channel to mono or stereo manually in ExoPlayer 1.4.1

Samrobbo commented 1 month ago

Hey there!

Take a look at ChannelMixingAudioProcessor - It needs to be setup with the matrices representing your preferred mixing coefficients.

This can be passed to DefaultAudioSink to be applied to decoded audio before it's queued to the AudioTrack.

yzm123-yzm commented 1 month ago

@Samrobbo Can you provide a usage case?