com.softsynth.jsyn.util
Class SampleQueueStream
java.lang.Object
com.softsynth.jsyn.util.SampleQueueStream
- Direct Known Subclasses:
- SampleQueueInputStream, SampleQueueOutputStream
public abstract class SampleQueueStream
- extends java.lang.Object
Adds streaming capabilities to a SynthSampleQueue.
This is the base class for SampleQueueInputStream and SampleQueueOutputStream
- Author:
- (C) 1997 Phil Burk, SoftSynth.com, All Rights Reserved
- See Also:
StreamRecorder
Method Summary |
int |
available()
Determine how many frames could be read or written
without blocking. |
SynthSample |
getSample()
|
int |
move(short[] data,
int offset,
int numFrames)
|
void |
start(int time)
|
void |
stop(int time)
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SampleQueueStream
public SampleQueueStream(SynthSampleQueue queue,
int bufferSizeInFrames,
int channelsPerFrame)
getSample
public SynthSample getSample()
start
public void start(int time)
stop
public void stop(int time)
available
public int available()
- Determine how many frames could be read or written
without blocking.
Updates overflow/underflow error flag.
move
public int move(short[] data,
int offset,
int numFrames)