=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/aucat/Attic/dev.c,v retrieving revision 1.64 retrieving revision 1.65 diff -u -r1.64 -r1.65 --- src/usr.bin/aucat/Attic/dev.c 2010/10/21 18:57:42 1.64 +++ src/usr.bin/aucat/Attic/dev.c 2011/05/26 07:18:40 1.65 @@ -1,4 +1,4 @@ -/* $OpenBSD: dev.c,v 1.64 2010/10/21 18:57:42 ratchov Exp $ */ +/* $OpenBSD: dev.c,v 1.65 2011/05/26 07:18:40 ratchov Exp $ */ /* * Copyright (c) 2008 Alexandre Ratchov * @@ -114,7 +114,7 @@ struct dev * dev_new_sio(char *path, unsigned mode, struct aparams *dipar, struct aparams *dopar, - unsigned bufsz, unsigned round, unsigned hold) + unsigned bufsz, unsigned round, unsigned hold, unsigned autovol) { struct dev *d; @@ -132,6 +132,7 @@ d->reqbufsz = bufsz; d->reqround = round; d->hold = hold; + d->autovol = autovol; d->pstate = DEV_CLOSED; d->next = dev_list; dev_list = d; @@ -299,7 +300,7 @@ * Create mixer, demuxer and monitor */ if (d->mode & MODE_PLAY) { - d->mix = mix_new("play", d->bufsz, d->round); + d->mix = mix_new("play", d->bufsz, d->round, d->autovol); d->mix->refs++; d->mix->u.mix.ctl = d->midi; }