com.jsyn.util
Class AudioStreamReader
java.lang.Object
com.jsyn.util.AudioStreamReader
- All Implemented Interfaces:
- AudioInputStream
public class AudioStreamReader
- extends java.lang.Object
- implements AudioInputStream
Reads audio signals from the background engine to a foreground application
through an AudioFifo.
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AudioStreamReader
public AudioStreamReader(Synthesizer synth,
int samplesPerFrame)
getInput
public UnitInputPort getInput()
available
public int available()
- How many values are available to read without blocking?
- Specified by:
available
in interface AudioInputStream
close
public void close()
- Specified by:
close
in interface AudioInputStream
read
public double read()
- Specified by:
read
in interface AudioInputStream
read
public int read(double[] buffer)
- Specified by:
read
in interface AudioInputStream
read
public int read(double[] buffer,
int start,
int count)
- Specified by:
read
in interface AudioInputStream