mirror of https://github.com/ericonr/sndio.git
insert recorded files on the wav list
This commit is contained in:
parent
a3a868da74
commit
ebdfbab96a
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue