B4J Question Selecting the Audio Output Device on playing a file

sibutr

Member
Licensed User
Longtime User
I have 3 USB Sound cards on my PC, want to select a specific one of them to play a audio file ( wav/mp3 ) ! Is it possible ? , How. ( as well as in B4A !).

( The main Idea is to Play 3 Audio files in the same time but each on a different OutPut. )
 

moster67

Expert
Licensed User
Longtime User
I tried using java and I can list available output-devices but I couldn't find a way to set an output to be used.

Thus, I don't think that the JavaFx has an API for that. See this
https://bugs.openjdk.java.net/browse/JDK-8091008

It might be possible by extending my Vlcj-wrapper however that requires that you use VLC as MediaPlayer and it might be an overkill for your purposes. Last time I read about it, there seems to have been in bug in Vlc that prevented it from working correctly but it might have changed by now.
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…