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
-
Method Summary
Modifier and TypeMethodDescriptionint
Get the swing component for the playback system.int
getName()
boolean
Must use the same sample rate for output as for input when running in real time.boolean
playData
(RawDataUnit[] data, double gain) boolean
prepareSystem
(PlaybackControl playbackControl, int nChannels, float sampleRate) boolean
Methods inherited from class soundPlayback.PlaybackSystem
addChangeObserver, notifyObservers, removeChangeObserver
-
Constructor Details
-
FilePlayback
-
-
Method Details
-
getMaxChannels
public int getMaxChannels()- Specified by:
getMaxChannels
in classPlaybackSystem
-
getDeviceNumber
public int getDeviceNumber() -
prepareSystem
- Specified by:
prepareSystem
in classPlaybackSystem
-
unPrepareSystem
public boolean unPrepareSystem()- Specified by:
unPrepareSystem
in classPlaybackSystem
-
playData
- Specified by:
playData
in classPlaybackSystem
-
getDialogComponent
Description copied from class:PlaybackSystem
Get the swing component for the playback system.- Specified by:
getDialogComponent
in classPlaybackSystem
- Returns:
- the swing component for the playback system.
-
getName
- Specified by:
getName
in classPlaybackSystem
- Returns:
- System name
-
getDeviceName
- Overrides:
getDeviceName
in classPlaybackSystem
- Returns:
- the name of the actual playback device
-
getPlaybackControl
-
mustSameIOSampleRate
public boolean mustSameIOSampleRate()Description copied from class:PlaybackSystem
Must use the same sample rate for output as for input when running in real time.- Overrides:
mustSameIOSampleRate
in classPlaybackSystem
- Returns:
- true if must use same sample rate for O as for I in real time.
-
getFilePBDevices
- Returns:
- the filePBDevices
-
getDeviceState
- Overrides:
getDeviceState
in classPlaybackSystem
-
getSettingsPane
- Specified by:
getSettingsPane
in classPlaybackSystem
- Returns:
-