=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/aucat/Attic/conf.h,v retrieving revision 1.15 retrieving revision 1.16 diff -u -r1.15 -r1.16 --- src/usr.bin/aucat/Attic/conf.h 2010/04/06 20:07:01 1.15 +++ src/usr.bin/aucat/Attic/conf.h 2010/10/21 18:57:42 1.16 @@ -1,4 +1,4 @@ -/* $OpenBSD: conf.h,v 1.15 2010/04/06 20:07:01 ratchov Exp $ */ +/* $OpenBSD: conf.h,v 1.16 2010/10/21 18:57:42 ratchov Exp $ */ /* * Copyright (c) 2008 Alexandre Ratchov * @@ -46,5 +46,26 @@ * units used for MTC clock. */ #define MTC_SEC 2400 /* 1 second is 2400 ticks */ + +/* + * device or sub-device mode, must be a superset of corresponding SIO_XXX + * and MIO_XXX constants + */ +#define MODE_PLAY 0x01 /* allowed to play */ +#define MODE_REC 0x02 /* allowed to rec */ +#define MODE_MIDIOUT 0x04 /* allowed to read midi */ +#define MODE_MIDIIN 0x08 /* allowed to write midi */ +#define MODE_MON 0x10 /* allowed to monitor */ +#define MODE_LOOP 0x20 /* deviceless mode */ +#define MODE_RECMASK (MODE_REC | MODE_MON) +#define MODE_AUDIOMASK (MODE_REC | MODE_MON | MODE_PLAY) +#define MODE_MIDIMASK (MODE_MIDIIN | MODE_MIDIOUT) + +/* + * underrun/overrun policies, must be the same as SIO_XXX + */ +#define XRUN_IGNORE 0 /* on xrun silently insert/discard samples */ +#define XRUN_SYNC 1 /* catchup to sync to the mix/sub */ +#define XRUN_ERROR 2 /* xruns are errors, eof/hup buffer */ #endif /* !defined(CONF_H) */