|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectaudio.AudioProcessor
public class AudioProcessor
An AudioProcessor maintains a HashMap of links between AudioInterfaces and VideoServers and acks as a sort of switchboard, taking messages from attached devices and sends them to the connected video servers. These messages can be anything from audio data to video output modules.
| Constructor Summary | |
|---|---|
AudioProcessor(Logger logger)
Creates a new audio processor. |
|
| Method Summary | |
|---|---|
boolean |
connected(int index)
Tells us whether or not we are connected to the specified video server. |
void |
connectInputToOutput(AudioInput audioInterface,
int videoServerIndex)
Links an audio interface to a video server as represented by the thick black lines in the audio processor GUI. |
int |
createVideoServer()
Creates a new VideoServer object and stores it |
void |
disconnectInputFromOutputs(AudioInput audioInterface)
Removes all connections for the specified audio interface. |
void |
disconnectOutputFromInputs(VideoServer videoServer)
Removes a video server from the HashMap. |
java.util.Vector<VideoServer> |
getConnectedVideoServers(AudioInput audioInterface)
|
AudioInput |
getInputDevice(int interfaceToGet)
|
java.util.Vector<AudioInput> |
getInputDevices()
|
VideoServer |
getVideoServer(int index)
|
int |
numConnections(AudioInput audioInterface)
Returns how many video servers a given audio interface is connected to. |
void |
sendMessage(java.lang.Object[] arguments,
AudioInput sendingInterface)
Sends an OSC message to the video server. |
void |
startInterface(int index)
Starts an interface sending/recieving audio data |
void |
stopInterface(int index)
Stops an interface from sending/recieving audio data |
void |
updateInputDevices()
Reinitialises the list of available input devices. |
boolean |
validInterface(int interfaceIndex)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AudioProcessor(Logger logger)
logger - Writes system messages out to a text file| Method Detail |
|---|
public int createVideoServer()
public VideoServer getVideoServer(int index)
index - The index of the VideoServer.
public boolean connected(int index)
public void updateInputDevices()
public java.util.Vector<AudioInput> getInputDevices()
public AudioInput getInputDevice(int interfaceToGet)
interfaceToGet - The index of the requested AudioInterface.
public boolean validInterface(int interfaceIndex)
interfaceIndex -
public void startInterface(int index)
index - The index of the AudioInterfacepublic void stopInterface(int index)
index - The index of the AudioInterface.
public void sendMessage(java.lang.Object[] arguments,
AudioInput sendingInterface)
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).
public void connectInputToOutput(AudioInput audioInterface,
int videoServerIndex)
audioInterface - The AudioInterface we wish to connect.videoServerIndex - The index of the VideoServer we wish to connect it to.public void disconnectInputFromOutputs(AudioInput audioInterface)
audioInterface - The audio interface to disconnect.public java.util.Vector<VideoServer> getConnectedVideoServers(AudioInput audioInterface)
audioInterface - The AudioInterface we wish to know about.
public int numConnections(AudioInput audioInterface)
audioInterface - The AudioInterface we wish to know about.
public void disconnectOutputFromInputs(VideoServer videoServer)
videoServer - The VideoServer we wish to remove.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||