Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Java Sound and 5.1

843802Jan 5 2010 — edited Jan 6 2010
Hi,

Sorry if this request has been posted before, but I have a very specific issue and it's confusing the hell outta me.

I have a Java console app running on Linux (ALSA), using Tritonus to decode MP3 (because JMF only decodes MP3 on Windows, am I right??). I am using the Java Sound Audio Engine to mix multiple MP3 files (crossfades, etc) and output the sound in mono. So far so good.

Now I would like to run this on a 5.1 card, with different instances of the program (threads actually) going to different jacks (or ports?) of the soundcard. So, to make it clear, each of the six outputs of the card will play mixed MP3s. In effect there could be 12 MP3 files playing at the same time.

1. It appears that the Java Sound Audio Engine only supports stereo.
2. Java Sound Ports totally confuse me (can you mix multiple sources like you can with Java Sound Audio Engine with it's 32 lines?)
3. I've had a quick look at the program called JACK (jackaudio.org), but that confuses me also.
4. Is there any way to reroute the SourceDataLine from Java Sound Audio Engine to another mixer's Port?
5. Is it possible at all to access 6 channels of a sound card direct from Java?

Help!

Thx.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 3 2010
Added on Jan 5 2010
5 comments
1,304 views