Package playn.robovm
Class CAFLoader.CAFDesc
java.lang.Object
playn.robovm.CAFLoader.CAFDesc
- Enclosing class:
CAFLoader
Contains data from the Audio Description chunk of a CAFF file.
-
Field Summary
FieldsModifier and TypeFieldDescriptionintThe number of bits of sample data for each channel in a frame of data.intThe number of bytes in a packet of data.intThe number of channels in each frame of data.intFlags specific to each format.A four-character code indicating the general kind of data in the stream.intThe number of sample frames in each packet of data.doubleThe number of sample frames per second of the data. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
sampleRate
public double sampleRateThe 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
A four-character code indicating the general kind of data in the stream. This value must be nonzero. -
formatFlags
public int formatFlagsFlags specific to each format. May be set to 0 to indicate no format flags. -
bytesPerPacket
public int bytesPerPacketThe 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 framesPerPacketThe 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 channelsPerFrameThe number of channels in each frame of data. This value must be nonzero. -
bitsPerChannel
public int bitsPerChannelThe 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
-
-
Method Details