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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addChangeObserver
(PlaybackChangeObserver playbackChangeObserver) abstract PlaybackDialogComponent
Get the swing component for the playback system.abstract int
abstract String
getName()
abstract PlaybackSettingsPane
boolean
Must use the same sample rate for output as for input when running in real time.void
abstract boolean
playData
(RawDataUnit[] data, double gain) abstract boolean
prepareSystem
(PlaybackControl playbackControl, int nChannels, float sampleRate) void
removeChangeObserver
(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
-