public class ASIOFilePlaybackSystem extends java.lang.Object implements FilePlaybackDevice
Constructor and Description |
---|
ASIOFilePlaybackSystem(FilePlayback filePlayback) |
Modifier and Type | Method and Description |
---|---|
java.lang.String[] |
getDeviceNames() |
java.lang.String |
getName() |
int |
getNumPlaybackChannels(int devNum)
Get's the number of playback channels for a given device.
|
boolean |
playData(RawDataUnit[] data)
Play some data.
|
boolean |
preparePlayback(PlaybackParameters playbackParameters)
Prepare playback
|
boolean |
stopPlayback()
Stop playback, clean up buffers, etc.
|
void |
summariseDevice(java.lang.String deviceName) |
void |
SummariseDevices() |
void |
switchBuffers(java.util.Set<com.synthbot.jasiohost.AsioChannel> activeChannels)
Called from the ASIOCallback.bufferSwitch();
|
public ASIOFilePlaybackSystem(FilePlayback filePlayback)
public java.lang.String[] getDeviceNames()
getDeviceNames
in interface FilePlaybackDevice
public int getNumPlaybackChannels(int devNum)
FilePlaybackDevice
getNumPlaybackChannels
in interface FilePlaybackDevice
devNum
- device numberpublic boolean preparePlayback(PlaybackParameters playbackParameters)
FilePlaybackDevice
preparePlayback
in interface FilePlaybackDevice
playbackParameters
- parameterspublic void SummariseDevices()
public void summariseDevice(java.lang.String deviceName)
public boolean stopPlayback()
FilePlaybackDevice
stopPlayback
in interface FilePlaybackDevice
public java.lang.String getName()
getName
in interface FilePlaybackDevice
public boolean playData(RawDataUnit[] data)
FilePlaybackDevice
playData
in interface FilePlaybackDevice
data
- array of raw audio data units.public void switchBuffers(java.util.Set<com.synthbot.jasiohost.AsioChannel> activeChannels)
activeChannels2
-