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
ConstructorsConstructorDescriptionAudioFileLongSound(AudioFile audioFile, VolumeModel volumeModel) AudioFileLongSound(File file, VolumeModel volumeModel) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()extractPart(float startTime, float endTime) Extract portion of sound for analysis.As sampledfloatlength()Length of audio in secondsintNumber 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:
closein classLongSound- Throws:
IOException
-
getSampled
Description copied from class:LongSoundAs sampled- Specified by:
getSampledin classLongSound- Returns:
- return long sound data as a sampled object
-
numberOfChannels
public int numberOfChannels()Description copied from class:LongSoundNumber of channels in audio file.- Specified by:
numberOfChannelsin classLongSound- Returns:
- number of channels
-
length
-
extractPart
Description copied from class:LongSoundExtract portion of sound for analysis.- Specified by:
extractPartin classLongSound- Parameters:
startTime-endTime-- Returns:
- sound segment
-