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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()intgetSamplesShortInterleaved(ShortBuffer pcmBuffer) booleanseek(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:
seekin classSoundSample- Returns:
- success or not
-
getSamplesShortInterleaved
- Specified by:
getSamplesShortInterleavedin classSoundSample- Returns:
- samples per channel
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein classSoundSample
-