|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.beadsproject.beads.core.AudioIO net.beadsproject.beads.core.io.JavaSoundAudioIO
public class JavaSoundAudioIO
The default AudioIO
, uses JavaSound.
Field Summary | |
---|---|
static int |
DEFAULT_OUTPUT_BUFFER_SIZE
The default system buffer size. |
Fields inherited from class net.beadsproject.beads.core.AudioIO |
---|
context |
Constructor Summary | |
---|---|
JavaSoundAudioIO()
Instantiates a new java sound audio io. |
|
JavaSoundAudioIO(int systemBufferSize)
Instantiates a new java sound audio io. |
Method Summary | |
---|---|
void |
chooseMixerCommandLine()
Presents a choice of mixers on the commandline. |
protected UGen |
getAudioInput(int[] channels)
Gets an audio input UGen . |
int |
getThreadPriority()
Gets the thread priority. |
static void |
printMixerInfo()
Prints information about the current Mixer to System.out. |
void |
selectMixer(int i)
Select a mixer by index. |
void |
setThreadPriority(int priority)
Sets the priority of the audio thread. |
protected boolean |
start()
Starts the audio system running. |
Methods inherited from class net.beadsproject.beads.core.AudioIO |
---|
getContext, prepare, stop, update |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int DEFAULT_OUTPUT_BUFFER_SIZE
Constructor Detail |
---|
public JavaSoundAudioIO()
public JavaSoundAudioIO(int systemBufferSize)
systemBufferSize
- the system buffer sizeMethod Detail |
---|
public void chooseMixerCommandLine()
public void selectMixer(int i)
i
- the index of the selected mixer.public static void printMixerInfo()
public void setThreadPriority(int priority)
priority
- the new thread prioritypublic int getThreadPriority()
protected boolean start()
start
in class AudioIO
protected UGen getAudioInput(int[] channels)
AudioIO
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.
getAudioInput
in class AudioIO
channels
- an array indicating which channels to serve.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |