Package icyllis.modernui.audio

# Class VorbisPullDecoder

java.lang.Object
icyllis.modernui.audio.SoundSample
icyllis.modernui.audio.VorbisPullDecoder

All Implemented Interfaces:
  `AutoCloseable`

public class VorbisPullDecoder extends SoundSample

- ## Field Summary

  ### Fields inherited from class icyllis.modernui.audio.SoundSample

  `mChannels, mSampleRate, mTotalSamples`

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `VorbisPullDecoder(ByteBuffer nativeEncodedAudioBuffer)`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `void`
  `close()`
  `int`
  `getSamplesShortInterleaved(ShortBuffer pcmBuffer)`
  `boolean`
  `seek(int sampleOffset)`

  ### Methods inherited from class icyllis.modernui.audio.SoundSample

  `getChannels, getSampleRate, getTotalLength, getTotalSamples`

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### VorbisPullDecoder

    public VorbisPullDecoder(@Nonnull ByteBuffer nativeEncodedAudioBuffer)

- ## Method Details

  - ### seek

    public boolean seek(int sampleOffset)
    Specified by:
      `seek` in class `SoundSample`
    Returns:
      success or not

  - ### getSamplesShortInterleaved

    public int getSamplesShortInterleaved(ShortBuffer pcmBuffer)
    Specified by:
      `getSamplesShortInterleaved` in class `SoundSample`
    Returns:
      samples per channel

  - ### close

    public void close()
    Specified by:
      `close` in interface `AutoCloseable`
    Specified by:
      `close` in class `SoundSample`