Package soundPlayback
Class PlaybackSystem
java.lang.Object
soundPlayback.PlaybackSystem
- Direct Known Subclasses:
 ASIOPlaybackSystem,FilePlayback,NIPlaybackSystem,SoundCardPlayback
Interface for soundplayback systems.
- Author:
 - Doug Gillespie
 
- 
Field Summary
Fields - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionvoidaddChangeObserver(PlaybackChangeObserver playbackChangeObserver) abstract PlaybackDialogComponentGet the swing component for the playback system.abstract intabstract StringgetName()abstract PlaybackSettingsPanebooleanMust use the same sample rate for output as for input when running in real time.voidabstract booleanplayData(RawDataUnit[] data, double gain) abstract booleanprepareSystem(PlaybackControl playbackControl, int nChannels, float sampleRate) voidremoveChangeObserver(PlaybackChangeObserver playbackChangeObserver) abstract boolean 
- 
Field Details
- 
changeObservers
 
 - 
 - 
Constructor Details
- 
PlaybackSystem
public PlaybackSystem() 
 - 
 - 
Method Details
- 
prepareSystem
public abstract boolean prepareSystem(PlaybackControl playbackControl, int nChannels, float sampleRate)  - 
unPrepareSystem
public abstract boolean unPrepareSystem() - 
getMaxChannels
public abstract int getMaxChannels() - 
playData
 - 
getDialogComponent
Get the swing component for the playback system.- Returns:
 - the swing component for the playback system.
 
 - 
getSettingsPane
- Returns:
 
 - 
getName
- Returns:
 - System name
 
 - 
mustSameIOSampleRate
public boolean mustSameIOSampleRate()Must use the same sample rate for output as for input when running in real time.- Returns:
 - true if must use same sample rate for O as for I in real time.
 
 - 
addChangeObserver
 - 
removeChangeObserver
 - 
notifyObservers
public void notifyObservers() - 
getDeviceState
 - 
getDeviceName
- Returns:
 - the name of the actual playback device
 
 
 -