.au header comment is mandatory

This commit is contained in:
Alexandre Ratchov 2015-01-07 14:21:46 +01:00
parent 901675b4f2
commit 7188d4fcc5
1 changed files with 7 additions and 1 deletions

View File

@ -140,6 +140,8 @@ struct au_hdr {
be32_t fmt;
be32_t rate;
be32_t nch;
char desc[8];
/* followed by optional desc[] continuation */
};
char wav_id_riff[4] = {'R', 'I', 'F', 'F'};
@ -894,7 +896,11 @@ afile_open(struct afile *f, char *path, int hdr, int flags,
struct aparams *par, int rate, int nch)
{
char *ext;
struct wav_hdr dummy;
union {
struct wav_hdr wav;
struct aiff_hdr aiff;
struct au_hdr au;
} dummy;
f->par = *par;
f->rate = rate;