Package icyllis.modernui.audio
Class VorbisPullDecoder
java.lang.Object
icyllis.modernui.audio.SoundSample
icyllis.modernui.audio.VorbisPullDecoder
- All Implemented Interfaces:
AutoCloseable
-
Field Summary
Fields inherited from class icyllis.modernui.audio.SoundSample
mChannels, mSampleRate, mTotalSamples
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
int
getSamplesShortInterleaved
(ShortBuffer pcmBuffer) boolean
seek
(int sampleOffset) Methods inherited from class icyllis.modernui.audio.SoundSample
getChannels, getSampleRate, getTotalLength, getTotalSamples
-
Constructor Details
-
VorbisPullDecoder
-
-
Method Details
-
seek
public boolean seek(int sampleOffset) - Specified by:
seek
in classSoundSample
- Returns:
- success or not
-
getSamplesShortInterleaved
- Specified by:
getSamplesShortInterleaved
in classSoundSample
- Returns:
- samples per channel
-
close
public void close()- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in classSoundSample
-