Skip to content
Bruce edited this page Nov 12, 2017 · 2 revisions

This is the specification of the DCA0 file format.

General information

The recommended file extension for DCA0 files is .dca.

Magic bytes

The DCA0 format does not any use magic bytes.

Audio data

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 ]

Header

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.

Opus encoded data

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.