If I've set up two byte
arrays to play as audio from within an Android app, is there a way I can play one in each ear simultaneously? Would there be a way to set each sound to one side or to set the balance for each one?
Asked
Active
Viewed 302 times
0

user2649681
- 750
- 1
- 6
- 23
-
http://stackoverflow.com/a/24808214/794088 might help – petey Jan 20 '15 at 19:53
-
@petey that doesn't really tell me how to set balance/offset as far as sides/ears are concerned. – user2649681 Jan 20 '15 at 21:03
-
you can play two sounds at the same time, http://stackoverflow.com/questions/2627101/playing-multiple-sounds-at-the-same-time-in-android – petey Jan 20 '15 at 22:15
-
@petey but how do I pan/set the balance for each side? – user2649681 Jan 21 '15 at 00:23
-
You haven't really said anything about which API you plan on using. `MediaPlayer` has a `setVolume` method that takes two arguments, `leftVolume` and `rightVolume`. – Michael Jan 21 '15 at 10:35
-
@Michael any way to play a `byte[]` array directly through a MediaPlayer instead of reading a file? – user2649681 Jan 21 '15 at 23:19