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