Package Acquisition.pamAudio
Class FlacAudioFile
java.lang.Object
Acquisition.pamAudio.FlacAudioFile
- All Implemented Interfaces:
PamAudioFileLoader
Opens a Flac compressed audio files.
- Author:
- Jamie Macaulay, Doug Gillespie
-
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 loaderboolean
loadAudioData
(OfflineFileServer offlineFileServer, PamDataBlock dataBlock, OfflineDataLoadInfo offlineDataLoadInfo, ViewLoadObserver loadObserver) Load a section of audio data.
-
Constructor Details
-
FlacAudioFile
public FlacAudioFile()
-
-
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
-
getAudioStream
Description copied from interface:PamAudioFileLoader
Get the audio stream for the file- Specified by:
getAudioStream
in interfacePamAudioFileLoader
- Returns:
- the audio input stream.
-
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
-
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.
-