0

Is there a best way to go about panning stereo audio in an android app? I have been looking for some decent audio libraries but have yet to come up with anything solid.

adanot
  • 318
  • 2
  • 21
  • Are you dealing with the audio at a sample level? If so, it's pretty trivial to do the panning yourself. – jaket Jun 24 '14 at 17:12
  • Sorry but I'm new to implementing audio into anything really. There is to be an audio file within the app that on start will play. The user can then pan that track left or right. There will also be other audio files that can play at the same time that will should not pan. That being said, I suppose I'm looking for a method for MediaPlayer or something else that will pan only that track. – adanot Jun 24 '14 at 17:46

1 Answers1

1

MediaPlayer.setVolume allows you to set the volume of the left and right channels independently.

For more details have a look at This SO question.

Community
  • 1
  • 1
jaket
  • 9,140
  • 2
  • 25
  • 44