Package nidaqdev
Class NIFilePlayback
java.lang.Object
nidaqdev.NIFilePlayback
- All Implemented Interfaces:
 PamSettings,SettingsNameProvider,FilePlaybackDevice
PArt of the system for playback from wav files. The wav file playback system
 has a number of subsystems, currently including sound card and NI card outputs. 
 
This is NOT the class used to play back data actually acquired using NI cards.
This is NOT the class used to play back data actually acquired using NI cards.
- Author:
 - Doug Gillespie
 
- 
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.longbooleanplayData(RawDataUnit[] data) Play some data.booleanpreparePlayback(PlaybackParameters playbackParameters) Prepare playbackbooleanrestoreSettings(PamControlledUnitSettings pamControlledUnitSettings) voidsetNiFilePlaybackParams(NIFilePlaybackParams niFilePlaybackParams) booleanStop playback, clean up buffers, etc. 
- 
Constructor Details
- 
NIFilePlayback
 
 - 
 - 
Method Details
- 
getDeviceNames
- Specified by:
 getDeviceNamesin interfaceFilePlaybackDevice- Returns:
 - a list of device names
 
 - 
getName
- Specified by:
 getNamein interfaceFilePlaybackDevice- Returns:
 - a name for this type of playback device
 
 - 
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:
 
 - 
getDeviceName
- Specified by:
 getDeviceNamein interfaceFilePlaybackDevice
 - 
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.
 
 - 
getNiFilePlaybackParams
- Returns:
 - the niFilePlaybackParams
 
 - 
setNiFilePlaybackParams
- Parameters:
 niFilePlaybackParams- the niFilePlaybackParams to set
 - 
getUnitName
- Specified by:
 getUnitNamein interfaceSettingsNameProvider- Returns:
 - A Name specific to this instance of the particular class, e.g. Sperm whale detector, Beaked whale detector, etc.
 
 - 
getUnitType
- Specified by:
 getUnitTypein interfacePamSettings- Returns:
 - A Name specific to the type, e.g. Click detector
 
 - 
getSettingsReference
- Specified by:
 getSettingsReferencein interfacePamSettings- Returns:
 - The serialisable object that will be stored
 
 - 
getSettingsVersion
public long getSettingsVersion()- Specified by:
 getSettingsVersionin interfacePamSettings- Returns:
 - An integer version number for the settings
 
 - 
restoreSettings
- Specified by:
 restoreSettingsin interfacePamSettings- Parameters:
 pamControlledUnitSettings-- Returns:
 - true if successful The object performs final checks (if needed) and then casts the settings data pamcontrolledunitSettings.settings into the correct type and uses as required
 
 - 
getCurrentDeviceInfo
- Returns:
 - the currentDeviceInfo
 
 
 -