Hello all,
I have been working at trying to get my Java app to use another sound device (in this case a virtual driver).
My source code:
import org.aegisknight.audiere.*;
public class AudiereTest {
public static void main(String[] args) {
try {
AudioDevice device = new AudioDevice("directsound", "buffer=1000,device_guid={4D36E96C-E325-11CE-BFC1-08002BE10318}\\0025");
String name = "Aye_Bruz.mp3";
OutputStream stream = device.openSound(name, true);
stream.play();
while (stream.isPlaying())
Thread.currentThread().sleep(10);
}
catch (Exception e) {
System.out.println(e);
}
}
}
I do believe that '{4D36E96C-E325-11CE-BFC1-08002BE10318}\\0025' is the GUID for the device 'Virtual Audio Cable' through my searching in the registry.
If anyone has another way to get a GUID I would love to hear it :). Anyway, no matter what I set device_guid to, it will still play on the default device, so I'm kind of worried that it might be broken? In winamp's DirectSound output plugin I can output to the device with no problems, so it isn't the driver.
Anyhelp at all would be appreciated, thanks.
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV_______________________________________________
Audiere-users mailing list
Audiere-users@...
https://lists.sourceforge.net/lists/listinfo/audiere-users