JMix ==== JMix is a simple class library for manipulating mixer devices on a Linux system under Java. I know we should really do this kind of stuff using JavaSound/JMF these days, but the standard Linux implementations are rarely any good, and they are really fiddly to use. This implementation is really simple. Installation ============ Type `make' to build everything. The shared library libjmix.so needs to be copied somewhere where it can be found by the Java VM when running (e.g. the JRE lib directory, typically $JAVA_HOME/jre/lib/i386) The JAR file jmix.jar needs to be on the CLASSPATH. Use === Should be self-explanatory. Any operation has three steps: 1. open the device 2. do something 3. close the device Opening occurs automatically when you create a new instance of the Mixer class. Call its close() method when finished. To find the number of mixer channels, use getNumChannels(). To find the name of a channel, use getChannelName(). The various get and set methods can be used to get and set the volumn, pan, etc., for the various channels. Notes ===== 1. In general, channel 0 is the master volume. 2. It is system-dependent whether the JVM gets a lock on the mixer device while it is open. Therefore, do be sure to close() after use. Author ====== Kevin Boone, Jan 2002. Do what you like with this code.