Package playn.robovm

Class CAFLoader.CAFDesc

java.lang.Object
playn.robovm.CAFLoader.CAFDesc
Enclosing class:
CAFLoader

public static class CAFLoader.CAFDesc extends Object
Contains data from the Audio Description chunk of a CAFF file.
  • Field Details

    • sampleRate

      public double sampleRate
      The number of sample frames per second of the data. You can combine this value with the frames per packet to determine the amount of time represented by a packet. This value must be nonzero.
    • formatID

      public String formatID
      A four-character code indicating the general kind of data in the stream. This value must be nonzero.
    • formatFlags

      public int formatFlags
      Flags specific to each format. May be set to 0 to indicate no format flags.
    • bytesPerPacket

      public int bytesPerPacket
      The number of bytes in a packet of data. For formats with a variable packet size, this field is set to 0. In that case, the file must include a Packet Table chunk “Packet Table Chunk.” Packets are always aligned to a byte boundary.
    • framesPerPacket

      public int framesPerPacket
      The number of sample frames in each packet of data. For compressed formats, this field indicates the number of frames encoded in each packet. For formats with a variable number of frames per packet, this field is set to 0 and the file must include a Packet Table chunk “Packet Table Chunk.”
    • channelsPerFrame

      public int channelsPerFrame
      The number of channels in each frame of data. This value must be nonzero.
    • bitsPerChannel

      public int bitsPerChannel
      The number of bits of sample data for each channel in a frame of data. This field must be set to 0 if the data format (for instance any compressed format) does not contain separate samples for each channel.
  • Constructor Details

    • CAFDesc

      public CAFDesc(byte[] data)
    • CAFDesc

      public CAFDesc(ByteBuffer buf)
  • Method Details

    • getALFormat

      public int getALFormat()
    • toString

      public String toString()
      Overrides:
      toString in class Object