I am looking to design and android app that would programmatically be able to route audio through the left and right speakers individually. That is when the song is played it would first route through the right speaker and it would then route it through the left speaker. The purpose of my app would be to validate that both the speakers are working fine. So far I haven't been able to successfully find any API that would do this .
Asked
Active
Viewed 2,133 times
1 Answers
5
First, have you looked at other questions like Set media left/right volume separately?. From that question I see that MediaPlayer.setVolume lets you control left and right volume levels. See MediaPlayer.SetVolume.
Another thought would be to create two audio files with: one with only sound on the left channel, and one with only sound on the right channel, then your app can play one file then the other...

Community
- 1
- 1

Michael Levy
- 13,097
- 15
- 66
- 100
-
Thanks , I used the second approach where I took one sound from the left channel and the other one on the right channel. One other question , I obtained these tones from youtube. Is there a way for me to generate a tone that would play only on the left or right channel ? – sim Jul 18 '13 at 18:50
-
1Audacity (http://audacity.sourceforge.net/) is one of the most popular and free tools for this type of editing. It can generate various tones. See http://manual.audacityteam.org/man/Generate_Menu – Michael Levy Jul 18 '13 at 19:41