Package ca.phon.media
Class AudioFileLongSound
java.lang.Object
ca.phon.media.LongSound
ca.phon.media.AudioFileLongSound
- All Implemented Interfaces:
IExtendable
-
Field Summary
Fields inherited from class ca.phon.media.LongSound
PREFERRED_LONGSOUND_LOADER_PROP
-
Constructor Summary
ConstructorDescriptionAudioFileLongSound
(AudioFile audioFile, VolumeModel volumeModel) AudioFileLongSound
(File file, VolumeModel volumeModel) -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
extractPart
(float startTime, float endTime) Extract portion of sound for analysis.As sampledfloat
length()
Length of audio in secondsint
Number of channels in audio file.Methods inherited from class ca.phon.media.LongSound
fromFile, getExtension, getExtensions, getFile, putExtension, removeExtension
-
Constructor Details
-
AudioFileLongSound
- Throws:
IOException
-
AudioFileLongSound
- Throws:
IOException
-
-
Method Details
-
close
- Specified by:
close
in classLongSound
- Throws:
IOException
-
getSampled
Description copied from class:LongSound
As sampled- Specified by:
getSampled
in classLongSound
- Returns:
- return long sound data as a sampled object
-
numberOfChannels
public int numberOfChannels()Description copied from class:LongSound
Number of channels in audio file.- Specified by:
numberOfChannels
in classLongSound
- Returns:
- number of channels
-
length
public float length()Description copied from class:LongSound
Length of audio in seconds -
extractPart
Description copied from class:LongSound
Extract portion of sound for analysis.- Specified by:
extractPart
in classLongSound
- Returns:
- sound segment
-