com.tuneology.avm.mixer
Class NativeMixer
java.lang.Object
|
+--com.tuneology.avm.mixer.NativeMixer
- All Implemented Interfaces:
- AudioMixer
- public class NativeMixer
- extends java.lang.Object
- implements AudioMixer
This class represents an audio mixer.
- Version:
- $Id: NativeMixer.java,v 1.1 2003/07/10 19:51:39 xnarf Exp $
- Author:
- Fran Taylor
Constructor Summary |
NativeMixer(java.lang.String dev)
Construct a new mixer device object. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NativeMixer
public NativeMixer(java.lang.String dev)
throws java.io.IOException
- Construct a new mixer device object.
- Parameters:
dev
- the mixer device name- Throws:
java.io.IOException
-
getDevices
public static java.lang.String[] getDevices()
- Returns a list of the available devices.
- Returns:
- a list of the available devices.
getName
public java.lang.String getName()
- Returns the name of the mixer.
- Specified by:
getName
in interface AudioMixer
- Returns:
- the name of the mixer.
getElements
public MixerElement[] getElements()
- Returns the elements (channels, switches) of the mixer.
- Specified by:
getElements
in interface AudioMixer
- Returns:
- the elements (channels, switches) of the mixer.
close
public void close()
throws java.io.IOException
- Call this to close the connection to the mixer
and release its resources.
- Specified by:
close
in interface AudioMixer
- Throws:
java.io.IOException
-
getPcmChannel
public MixerChannel getPcmChannel()
- Specified by:
getPcmChannel
in interface AudioMixer
getMasterChannel
public MixerChannel getMasterChannel()
- Specified by:
getMasterChannel
in interface AudioMixer
getVersions
public static java.lang.String getVersions()
- Returns the version strings of underlying libraries.
- Returns:
- the version strings of underlying libraries.
touch
public static void touch()