Package Acquisition.pamAudio
Class WavAudioFile
java.lang.Object
Acquisition.pamAudio.WavAudioFile
- All Implemented Interfaces:
 PamAudioFileLoader
- Direct Known Subclasses:
 SudAudioFile
Wav audio file - opens any raw audio file. 
 
This should be used a standard class for opening audio files
- Author:
 - Jamie Macaulay, Doug Gillepsie
 
- 
Field Summary
FieldsModifier and TypeFieldDescriptionGet the file extensions associated with loading these data. - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptiongetAudioStream(File soundFile) Get the audio stream for the fileGet file extensions associated with the file typegetName()Get the name of the file.Get a settings pane for the audio loaderstatic booleanisSoundFile(File soundFile) booleanloadAudioData(OfflineFileServer offlineFileServer, PamDataBlock dataBlock, OfflineDataLoadInfo offlineDataLoadInfo, ViewLoadObserver loadObserver) Load a section of audio data. 
- 
Field Details
- 
fileExtensions
Get the file extensions associated with loading these data. 
 - 
 - 
Constructor Details
- 
WavAudioFile
public WavAudioFile() 
 - 
 - 
Method Details
- 
getFileExtensions
Description copied from interface:PamAudioFileLoaderGet file extensions associated with the file type- Specified by:
 getFileExtensionsin interfacePamAudioFileLoader- Returns:
 - a list of the file extensions (e.g.".wav")
 
 - 
getName
Description copied from interface:PamAudioFileLoaderGet the name of the file.- Specified by:
 getNamein interfacePamAudioFileLoader- Returns:
 - the name of the file
 
 - 
loadAudioData
public boolean loadAudioData(OfflineFileServer offlineFileServer, PamDataBlock dataBlock, OfflineDataLoadInfo offlineDataLoadInfo, ViewLoadObserver loadObserver) Description copied from interface:PamAudioFileLoaderLoad a section of audio data.- Specified by:
 loadAudioDatain interfacePamAudioFileLoader- Parameters:
 offlineFileServer- - the offline file server.dataBlock- - the data block.offlineDataLoadInfo- - the offline data load info.- Returns:
 - true if the file has been loaded
 
 - 
getAudioStream
Description copied from interface:PamAudioFileLoaderGet the audio stream for the file- Specified by:
 getAudioStreamin interfacePamAudioFileLoader- Returns:
 - the audio input stream.
 
 - 
isSoundFile
 - 
getSettingsPane
Description copied from interface:PamAudioFileLoaderGet a settings pane for the audio loader- Specified by:
 getSettingsPanein interfacePamAudioFileLoader- Returns:
 - settings pane for audio loader - can be null.
 
 
 -