-
Notifications
You must be signed in to change notification settings - Fork 16
DCA0 specification
This is the specification of the DCA0
file format.
The recommended file extension for DCA0 files is .dca
.
The DCA0
format does not any use magic bytes.
DCA0
files are a series of any number of audio packets. It can be assumed that there's always at least one packet available. The packets are structured as follows:
[ header ] [ opus encoded data ]
The header specifies how many bytes of opus encoded data can follow. It is encoded as a 16-bit, signed, little endian integer. It is only signed for compatibility reasons, the length will never be negative. It can be assumed that this header is never zero either.
The most important part of a DCA0
file, the audio data, is represented as individual Opus frames.
No further assumptions can be made about this data other than it being a valid Opus frame.