uk.org.toot.audio.mixer
Class AudioMixer

java.lang.Object
  extended by uk.org.toot.audio.mixer.AudioMixer
All Implemented Interfaces:
AudioClient

public class AudioMixer
extends java.lang.Object
implements AudioClient

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

AudioMixer

public AudioMixer(MixerControls controls,
                  AudioServer server)
           throws java.lang.Exception
Throws:
java.lang.Exception
Method Detail

getMixerControls

public MixerControls getMixerControls()

isMutating

public boolean isMutating()

waitForMutations

public void waitForMutations()

getStrip

public AudioMixerStrip getStrip(java.lang.String name)

getStripImpl

public AudioMixerStrip getStripImpl(java.lang.String name)

getStrips

public java.util.List<AudioMixerStrip> getStrips()

getUnusedChannelStrip

public AudioMixerStrip getUnusedChannelStrip()
Return a channel strip which does not have an input.

Returns:
the unused AudioMixerStrip.

work

public void work(int nFrames)
Description copied from interface: AudioClient
Called by an AudioServer to process the specified number of frames.

Specified by:
work in interface AudioClient
Parameters:
nFrames - the number of frames to be processed

getBus

public AudioMixerBus getBus(java.lang.String name)

getMainBus

public AudioMixerBus getMainBus()

getMainStrip

public AudioMixerStrip getMainStrip()

close

public void close()

isEnabled

public boolean isEnabled()

setEnabled

public void setEnabled(boolean enabled)
Description copied from interface: AudioClient
When not enabled, work() may not be called and should be ignored if it is called.

Specified by:
setEnabled in interface AudioClient


Copyright © 2004, 2005, 2006, 2007 Steve Taylor. All Rights Reserved.