[speex-dev] ACM Format Tag for Speex Audio

Christian.Buchner Christian.Buchner1 at epost.de
Wed Jun 18 10:56:29 PDT 2003

> Also, the WAVEFORMATEX structure must be planned so that it is extensible, with
> backward-compatibility, without having to ring back Microsoft for further
> WAVE_FORMAT tags. For instance, it is a good idea to put a flexible sub-format
> code in the structure that allows various layouts. 

My WAVEFORMATEX contains a major and minor version in the first two bytes.
I also put the whole SPEEX header packet into that header, as well as a
short ASCII notice where to download the ACM codec.

Using this major and minor version my ACM codec can accomodate for different
payload versions. For example when I decide to implement a variable bitrate
mode, I will have to add synchronization markers into the bitstream. In that
case I would update the version requirement. The old ACM codec version will
then deny to decode any newer payload formats instead of just producing noise
or crash (worst case). ;)


--- >8 ----
List archives:  http://www.xiph.org/archives/
Ogg project homepage: http://www.xiph.org/ogg/
To unsubscribe from this list, send a message to 'speex-dev-request at xiph.org'
containing only the word 'unsubscribe' in the body.  No subject is needed.
Unsubscribe messages sent to the list will be ignored/filtered.

More information about the Speex-dev mailing list