Package soundPlayback
Class FilePlayback
java.lang.Object
soundPlayback.PlaybackSystem
soundPlayback.FilePlayback
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:
 
- 
Field Summary
Fields inherited from class soundPlayback.PlaybackSystem
changeObservers - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionintGet the swing component for the playback system.intgetName()booleanMust use the same sample rate for output as for input when running in real time.protected voidbooleanplayData(RawDataUnit[] data, double gain) booleanprepareSystem(PlaybackControl playbackControl, int nChannels, float sampleRate) booleanMethods inherited from class soundPlayback.PlaybackSystem
addChangeObserver, notifyObservers, removeChangeObserver 
- 
Constructor Details
- 
FilePlayback
 
 - 
 - 
Method Details
- 
getMaxChannels
public int getMaxChannels()- Specified by:
 getMaxChannelsin classPlaybackSystem
 - 
getDeviceNumber
public int getDeviceNumber() - 
prepareSystem
- Specified by:
 prepareSystemin classPlaybackSystem
 - 
unPrepareSystem
public boolean unPrepareSystem()- Specified by:
 unPrepareSystemin classPlaybackSystem
 - 
playData
- Specified by:
 playDatain classPlaybackSystem
 - 
playbackError
protected void playbackError() - 
getDialogComponent
Description copied from class:PlaybackSystemGet the swing component for the playback system.- Specified by:
 getDialogComponentin classPlaybackSystem- Returns:
 - the swing component for the playback system.
 
 - 
getName
- Specified by:
 getNamein classPlaybackSystem- Returns:
 - System name
 
 - 
getDeviceName
- Overrides:
 getDeviceNamein classPlaybackSystem- Returns:
 - the name of the actual playback device
 
 - 
getPlaybackControl
 - 
mustSameIOSampleRate
public boolean mustSameIOSampleRate()Description copied from class:PlaybackSystemMust use the same sample rate for output as for input when running in real time.- Overrides:
 mustSameIOSampleRatein classPlaybackSystem- Returns:
 - true if must use same sample rate for O as for I in real time.
 
 - 
getFilePBDevices
- Returns:
 - the filePBDevices
 
 - 
getDeviceState
- Overrides:
 getDeviceStatein classPlaybackSystem
 - 
getSettingsPane
- Specified by:
 getSettingsPanein classPlaybackSystem- Returns:
 
 
 -