audio
Class AudioInterfaceDriver
java.lang.Object
audio.AudioInterfaceDriver
public class AudioInterfaceDriver
- extends java.lang.Object
This class sits between the AudioProcessor object and the various bits of audio hardware on the computer.
It attemts to deserialize objects that extend the audio.modules.AudioInputSystem class from a directory
called audioModules, and to then ask those objects for the list of audio interfaces they provide. It allows
the AudioProcessor to interrogate and receive messages from those audio interfaces.
|
Method Summary |
void |
findDevices()
Loads AudioInputSystem objects that have been seralized and placed in the audioModule directory
by the genmod shell script (which runs the main methods in the
utilities.serializer.AudioModuleSerializer and utilities.serializer.VideoModuleSerializer classes). |
java.util.Vector<AudioInput> |
getDevices()
|
void |
sendMessage(java.lang.Object[] arguments,
AudioInput sendingInterface)
This passes messages on to the AudioProcessor class this class is contained in |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AudioInterfaceDriver
public AudioInterfaceDriver(Logger logger,
AudioProcessor audioProcessor)
getDevices
public java.util.Vector<AudioInput> getDevices()
- Returns:
- A vector of objects representing the audio devices available.
findDevices
public void findDevices()
- Loads AudioInputSystem objects that have been seralized and placed in the audioModule directory
by the genmod shell script (which runs the main methods in the
utilities.serializer.AudioModuleSerializer and utilities.serializer.VideoModuleSerializer classes).
sendMessage
public void sendMessage(java.lang.Object[] arguments,
AudioInput sendingInterface)
- This passes messages on to the AudioProcessor class this class is contained in
- Parameters:
arguments - An Object[] array suitable for turning into an OSC packetsendingInterface - The interface sending the message (used to ensure that it's sent to the right VideoProcessor).