public class DataLineSink extends Object implements Realtime
SourceDataLine.
AudioFormat. This includes bit-depth, sampling rate and number of channels.
If one of these parameter values is not supported by the current implementation,
an IllegalArgumentException is thrown.
(Esp. the number of FloatSignalSources applied to the constructor must correspond exactly
to the number of channels of the output format.)
| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_BUFFER_SIZE |
static long |
DEFAULT_SLEEP_TIME_MS |
DEFAULT_AFAP_INTERRUPT_LATENCY| Constructor and Description |
|---|
DataLineSink(FloatSignalSource source,
SourceDataLine line)
Deprecated.
|
DataLineSink(FloatSignalSource source,
SourceDataLine line,
int bufferSize)
Deprecated.
|
DataLineSink(SourceDataLine line,
FloatSignalSource... sources) |
DataLineSink(SourceDataLine line,
int bufferSize,
FloatSignalSource... sources) |
| Modifier and Type | Method and Description |
|---|---|
static AudioFormat |
makeAudioFormat(float sampleFreq)
Deprecated.
|
void |
run()
Processes an event.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitadHoc, afap, afap, andThen, asAsynchronousSwingEvent, compileControlFlow, every, every, frequently, frequently, frequently, sequence, times, timespublic static final int DEFAULT_BUFFER_SIZE
public static final long DEFAULT_SLEEP_TIME_MS
@Deprecated public DataLineSink(FloatSignalSource source, SourceDataLine line)
public DataLineSink(SourceDataLine line, FloatSignalSource... sources)
@Deprecated public DataLineSink(FloatSignalSource source, SourceDataLine line, int bufferSize)
public DataLineSink(SourceDataLine line, int bufferSize, FloatSignalSource... sources)
@Deprecated public static AudioFormat makeAudioFormat(float sampleFreq)