|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.org.toot.audio.mixer.AudioMixer
public class AudioMixer
AudioMixer provides a 'crossbar' of AudioMixerStrips and AudioMixerBusses, at each strip/bus intesection a MixProcess is used to potentially mix a portion of the audio signal from the strip to the bus (or to a strip if routed). The audio signal is not modified by MixProcess. Prohibited: groups routing to groups 1 buffer per bus plus 1 buffer per group
Constructor Summary | |
---|---|
AudioMixer(MixerControls controls,
AudioServer server)
|
Method Summary | |
---|---|
void |
close()
|
AudioMixerBus |
getBus(java.lang.String name)
|
AudioMixerBus |
getMainBus()
|
AudioMixerStrip |
getMainStrip()
|
MixerControls |
getMixerControls()
|
AudioMixerStrip |
getStrip(java.lang.String name)
|
AudioMixerStrip |
getStripImpl(java.lang.String name)
|
java.util.List<AudioMixerStrip> |
getStrips()
|
AudioMixerStrip |
getUnusedChannelStrip()
Return a channel strip which does not have an input. |
boolean |
isEnabled()
|
boolean |
isMutating()
|
void |
setEnabled(boolean enabled)
When not enabled, work() may not be called and should be ignored if it is called. |
void |
waitForMutations()
|
void |
work(int nFrames)
Called by an AudioServer to process the specified number of frames. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AudioMixer(MixerControls controls, AudioServer server) throws java.lang.Exception
java.lang.Exception
Method Detail |
---|
public MixerControls getMixerControls()
public boolean isMutating()
public void waitForMutations()
public AudioMixerStrip getStrip(java.lang.String name)
public AudioMixerStrip getStripImpl(java.lang.String name)
public java.util.List<AudioMixerStrip> getStrips()
public AudioMixerStrip getUnusedChannelStrip()
public void work(int nFrames)
AudioClient
work
in interface AudioClient
nFrames
- the number of frames to be processedpublic AudioMixerBus getBus(java.lang.String name)
public AudioMixerBus getMainBus()
public AudioMixerStrip getMainStrip()
public void close()
public boolean isEnabled()
public void setEnabled(boolean enabled)
AudioClient
setEnabled
in interface AudioClient
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |