Package soundPlayback
Class SoundCardFilePlayback
java.lang.Object
soundPlayback.SoundCardFilePlayback
- All Implemented Interfaces:
FilePlaybackDevice
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionString[]
Get device status information.getName()
int
getNumPlaybackChannels
(int devNum) Get's the number of playback channels for a given device.Get a settings panel for additional options.boolean
playData
(RawDataUnit[] data) Play some data.boolean
preparePlayback
(PlaybackParameters playbackParameters) Prepare playbackboolean
Stop playback, clean up buffers, etc.
-
Constructor Details
-
SoundCardFilePlayback
-
-
Method Details
-
getName
- Specified by:
getName
in interfaceFilePlaybackDevice
- Returns:
- a name for this type of playback device
-
getDeviceName
- Specified by:
getDeviceName
in interfaceFilePlaybackDevice
-
getDeviceNames
- Specified by:
getDeviceNames
in interfaceFilePlaybackDevice
- Returns:
- a list of device names
-
getNumPlaybackChannels
public int getNumPlaybackChannels(int devNum) Description copied from interface:FilePlaybackDevice
Get's the number of playback channels for a given device.- Specified by:
getNumPlaybackChannels
in interfaceFilePlaybackDevice
- Parameters:
devNum
- device number- Returns:
- number of channels
-
playData
Description copied from interface:FilePlaybackDevice
Play some data. The length of the data array must correspond to the number of channels.- Specified by:
playData
in interfaceFilePlaybackDevice
- Parameters:
data
- array of raw audio data units.- Returns:
- true if played OK.
-
preparePlayback
Description copied from interface:FilePlaybackDevice
Prepare playback- Specified by:
preparePlayback
in interfaceFilePlaybackDevice
- Parameters:
playbackParameters
- parameters- Returns:
- true if all Ok. S
-
stopPlayback
public boolean stopPlayback()Description copied from interface:FilePlaybackDevice
Stop playback, clean up buffers, etc.- Specified by:
stopPlayback
in interfaceFilePlaybackDevice
- Returns:
- true if all cleaned up Ok.
-
getDeviceState
Description copied from interface:FilePlaybackDevice
Get device status information.- Specified by:
getDeviceState
in interfaceFilePlaybackDevice
- Returns:
-
getSettingsPanel
Description copied from interface:FilePlaybackDevice
Get a settings panel for additional options. Can be null.- Specified by:
getSettingsPanel
in interfaceFilePlaybackDevice
- Returns:
- settings panel or null for additional options.
-