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
-
Constructor Summary
-
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 boolean
isSoundFile
(File soundFile) boolean
loadAudioData
(OfflineFileServer offlineFileServer, PamDataBlock dataBlock, OfflineDataLoadInfo offlineDataLoadInfo, ViewLoadObserver loadObserver) Load a section of audio data.static void
-
Constructor Details
-
WavAudioFile
public WavAudioFile()
-
-
Method Details
-
getFileExtensions
Description copied from interface:PamAudioFileLoader
Get file extensions associated with the file type- Specified by:
getFileExtensions
in interfacePamAudioFileLoader
- Returns:
- a list of the file extensions (e.g.".wav")
-
getName
Description copied from interface:PamAudioFileLoader
Get the name of the file.- Specified by:
getName
in interfacePamAudioFileLoader
- Returns:
- the name of the file
-
loadAudioData
public boolean loadAudioData(OfflineFileServer offlineFileServer, PamDataBlock dataBlock, OfflineDataLoadInfo offlineDataLoadInfo, ViewLoadObserver loadObserver) Description copied from interface:PamAudioFileLoader
Load a section of audio data.- Specified by:
loadAudioData
in 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:PamAudioFileLoader
Get the audio stream for the file- Specified by:
getAudioStream
in interfacePamAudioFileLoader
- Returns:
- the audio input stream.
-
isSoundFile
-
main
-
getSettingsPane
Description copied from interface:PamAudioFileLoader
Get a settings pane for the audio loader- Specified by:
getSettingsPane
in interfacePamAudioFileLoader
- Returns:
- settings pane for audio loader - can be null.
-