1
0
mirror of https://github.com/ericonr/sndio.git synced 2024-02-18 04:45:21 -06:00

insert recorded files on the wav list

This commit is contained in:
Alexandre Ratchov 2012-11-07 09:10:03 +01:00
parent a3a868da74
commit ebdfbab96a

View File

@ -885,6 +885,8 @@ wav_new_out(struct fileops *ops, struct dev *dev,
f->mode = mode; f->mode = mode;
f->pstate = WAV_CFG; f->pstate = WAV_CFG;
f->endpos = f->startpos = 0; f->endpos = f->startpos = 0;
f->next = wav_list;
wav_list = f;
if (hdr == HDR_WAV) { if (hdr == HDR_WAV) {
par->le = 1; par->le = 1;
par->sig = (par->bits <= 8) ? 0 : 1; par->sig = (par->bits <= 8) ? 0 : 1;