Package icyllis.modernui.audio

# Class VorbisPushDecoder

java.lang.Object
icyllis.modernui.audio.SoundStream
icyllis.modernui.audio.VorbisPushDecoder

All Implemented Interfaces:
  `AutoCloseable`

public class VorbisPushDecoder extends SoundStream
Support for Ogg Vorbis.

- ## Field Summary

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

  `mChannels, mSampleOffset, mSampleRate`

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `VorbisPushDecoder(FileChannel channel)`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `void`
  `close()`
  `FloatBuffer`
  `decodeFrame(FloatBuffer output)`
  `int`
  `getTotalSamples()`

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

  `f_to_s16, getChannels, getSampleOffset, getSampleRate, s16_to_f`

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

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

- ## Constructor Details

  - ### VorbisPushDecoder

    public VorbisPushDecoder(@Nonnull FileChannel channel) throws IOException
    Throws:
      `IOException`

- ## Method Details

  - ### getTotalSamples

    public int getTotalSamples()

  - ### decodeFrame

    @Nullable public FloatBuffer decodeFrame(@Nullable FloatBuffer output) throws IOException
    Specified by:
      `decodeFrame` in class `SoundStream`
    Throws:
      `IOException`

  - ### close

    public void close() throws IOException
    Specified by:
      `close` in interface `AutoCloseable`
    Specified by:
      `close` in class `SoundStream`
    Throws:
      `IOException`