views:

40

answers:

0

I'm using a java music library called JavaMod. I want to stream the output of the java audio system to a shoutcast server.

"ezstream" is a command line tool that accept stdin and encode/stream it to an icecast/shoutcast server, but I'm not sure how to hook ezstream into the java audio system.

How do I 'register' the stdin of "ezstream" as a Java audio device so that a sample stream written to java's AudioSystem.sourceDataLine is directed to ezstream's stdin?