Package Acquisition.sud
Class SudAudioFile
java.lang.Object
Acquisition.pamAudio.WavAudioFile
Acquisition.sud.SudAudioFile
- All Implemented Interfaces:
 PamAudioFileLoader,PamSettings,SettingsNameProvider
Opens a .sud audio file.
 
Sud files contain X3 compressed audio data. The sud file reader opens files, creating a map of the file and saving the map as a.sudx file so it can be read more rapidly when the file is next accessed.
The SudioAudioInput stream fully implements AudioInputStream and so sud files can be accessed using much of the same code as .wav files.
- Author:
 - Jamie Macaulay
 
- 
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclassclassOpens an sud file on a different thread and adds a listener for a mapping. - 
Field Summary
Fields inherited from class Acquisition.pamAudio.WavAudioFile
fileExtensions - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptiongetAudioStream(File soundFile) Get the audio stream for the filegetName()Get the name of the file.Get a settings pane for the audio loaderlongbooleanrestoreSettings(PamControlledUnitSettings pamControlledUnitSettings) Methods inherited from class Acquisition.pamAudio.WavAudioFile
getFileExtensions, isSoundFile, loadAudioData 
- 
Constructor Details
- 
SudAudioFile
public SudAudioFile() 
 - 
 - 
Method Details
- 
getName
Description copied from interface:PamAudioFileLoaderGet the name of the file.- Specified by:
 getNamein interfacePamAudioFileLoader- Overrides:
 getNamein classWavAudioFile- Returns:
 - the name of the file
 
 - 
getAudioStream
Description copied from interface:PamAudioFileLoaderGet the audio stream for the file- Specified by:
 getAudioStreamin interfacePamAudioFileLoader- Overrides:
 getAudioStreamin classWavAudioFile- Returns:
 - the audio input stream.
 
 - 
getSettingsPane
Description copied from interface:PamAudioFileLoaderGet a settings pane for the audio loader- Specified by:
 getSettingsPanein interfacePamAudioFileLoader- Overrides:
 getSettingsPanein classWavAudioFile- Returns:
 - settings pane for audio loader - can be null.
 
 - 
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
 
 - 
getSudParams
 
 -