soundPlayback
Class FilePlayback
java.lang.Object
soundPlayback.FilePlayback
- All Implemented Interfaces:
- PlaybackSystem
public class FilePlayback
- extends java.lang.Object
- implements PlaybackSystem
Playback of sound from wav files.
Other real time sound sources must handle their own playback so that
timing of in and out is synchronised correctly.
- Author:
- Doug Gillespie
- See Also:
DaqSystem
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
playbackControl
private PlaybackControl playbackControl
filePlaybackDialogComponent
private FilePlaybackDialogComponent filePlaybackDialogComponent
filePBDevices
protected java.util.ArrayList<FilePlaybackDevice> filePBDevices
currentDevice
private FilePlaybackDevice currentDevice
FilePlayback
public FilePlayback(PlaybackControl playbackControl)
getMaxChannels
public int getMaxChannels()
- Specified by:
getMaxChannels in interface PlaybackSystem
getDeviceNumber
public int getDeviceNumber()
prepareSystem
public boolean prepareSystem(PlaybackControl playbackControl,
int nChannels,
float sampleRate)
- Specified by:
prepareSystem in interface PlaybackSystem
unPrepareSystem
public boolean unPrepareSystem()
- Specified by:
unPrepareSystem in interface PlaybackSystem
playData
public boolean playData(RawDataUnit[] data)
- Specified by:
playData in interface PlaybackSystem
getDialogComponent
public PlaybackDialogComponent getDialogComponent()
- Specified by:
getDialogComponent in interface PlaybackSystem
getName
public java.lang.String getName()
- Specified by:
getName in interface PlaybackSystem
getPlaybackControl
public PlaybackControl getPlaybackControl()