|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.beadsproject.beads.core.AudioIO
public abstract class AudioIO
AudioIO is the abstract base class for setting up interaction between AudioContext
and the world. It is
designed to be largely controlled by AudioContext
. To be precise, AudioContext will prepare(), start(), and stop() the
AudioIO it is initialised with. However, certain AudioIO implementations may need to be set up before being passed to AudioContext(). By default, AudioContext creates a JavaSoundAudioIO
.
Field Summary | |
---|---|
protected AudioContext |
context
The context. |
Constructor Summary | |
---|---|
AudioIO()
|
Method Summary | |
---|---|
protected abstract UGen |
getAudioInput(int[] channels)
Gets an audio input UGen . |
AudioContext |
getContext()
Gets the AudioContext . |
protected boolean |
prepare()
Prepares the AudioIO. |
protected abstract boolean |
start()
Starts the AudioIO. |
protected boolean |
stop()
Stops the AudioIO. |
protected void |
update()
Updates the AudioContext . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected AudioContext context
Constructor Detail |
---|
public AudioIO()
Method Detail |
---|
protected boolean prepare()
AudioContext
's constructor.
This has default implementation as it will not be needed by most implementation.
protected abstract boolean start()
update()
and then gather the output of AudioContext.out
.
protected boolean stop()
AudioContext.isRunning()
at
each time step.
protected abstract UGen getAudioInput(int[] channels)
UGen
. The argument specifies an array of channel numbers
that this UGen should serve. For example, the array {0, 4, 2} should return a UGen with
3 outputs, corresponding to input channels 1, 5 and 3 respectively on the audio device.
channels
- an array indicating which channels to serve.
protected void update()
AudioContext
.
public AudioContext getContext()
AudioContext
.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |