net.beadsproject.beads.core.io
Class NonrealtimeIO

java.lang.Object
  extended by net.beadsproject.beads.core.AudioIO
      extended by net.beadsproject.beads.core.io.NonrealtimeIO

public class NonrealtimeIO
extends AudioIO

A dummy AudioIO class that is purely for non-realtime use; it does not interface with any system audio.

Version:
0.9.5
Author:
Benito Crawford

Field Summary
 
Fields inherited from class net.beadsproject.beads.core.AudioIO
context
 
Constructor Summary
NonrealtimeIO()
           
 
Method Summary
protected  UGen getAudioInput(int[] channels)
          Gets an audio input UGen.
protected  boolean start()
          Starts the AudioIO.
 
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
 

Constructor Detail

NonrealtimeIO

public NonrealtimeIO()
Method Detail

start

protected boolean start()
Description copied from class: AudioIO
Starts the AudioIO. When started, the AudioIO should repeatedly call AudioIO.update() and then gather the output of AudioContext.out.

Specified by:
start in class AudioIO
Returns:
true, if successful

getAudioInput

protected UGen getAudioInput(int[] channels)
Description copied from class: AudioIO
Gets an audio input 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.

Specified by:
getAudioInput in class AudioIO
Parameters:
channels - an array indicating which channels to serve.
Returns:
the audio input.