[BACK]Return to dev.h CVS log [TXT][DIR] Up to [local] / src / usr.bin / aucat

Annotation of src/usr.bin/aucat/dev.h, Revision 1.21

1.21    ! ratchov     1: /*     $OpenBSD: dev.h,v 1.20 2010/04/06 20:07:01 ratchov Exp $        */
1.1       ratchov     2: /*
                      3:  * Copyright (c) 2008 Alexandre Ratchov <alex@caoua.org>
                      4:  *
                      5:  * Permission to use, copy, modify, and distribute this software for any
                      6:  * purpose with or without fee is hereby granted, provided that the above
                      7:  * copyright notice and this permission notice appear in all copies.
                      8:  *
                      9:  * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
                     10:  * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
                     11:  * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
                     12:  * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
                     13:  * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
                     14:  * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
                     15:  * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
                     16:  */
                     17: #ifndef DEV_H
                     18: #define DEV_H
                     19:
1.2       ratchov    20: struct aproc;
                     21: struct aparams;
                     22: struct abuf;
1.1       ratchov    23:
1.20      ratchov    24: #define DEV_INIT       0
                     25: #define DEV_START      1
                     26: #define DEV_RUN                2
                     27: #define DEV_STOP       3
                     28:
                     29: extern unsigned dev_pstate;
1.3       ratchov    30: extern unsigned dev_bufsz, dev_round, dev_rate;
1.2       ratchov    31: extern struct aparams dev_ipar, dev_opar;
1.20      ratchov    32: extern struct aproc *dev_mix, *dev_sub, *dev_midi, *dev_submon, *dev_mon;
1.2       ratchov    33:
1.12      ratchov    34: void dev_thruinit(void);
1.16      ratchov    35: int  dev_thruadd(char *, int, int);
1.12      ratchov    36: void dev_midiattach(struct abuf *, struct abuf *);
1.8       ratchov    37: unsigned dev_roundof(unsigned);
1.9       ratchov    38: void dev_loopinit(struct aparams *, struct aparams *, unsigned);
1.20      ratchov    39: int  dev_init(char *, unsigned,
                     40:     struct aparams *, struct aparams *, unsigned, unsigned);
1.2       ratchov    41: void dev_start(void);
                     42: void dev_stop(void);
                     43: void dev_run(int);
                     44: void dev_done(void);
1.20      ratchov    45: int  dev_getep(unsigned, struct abuf **, struct abuf **);
                     46: void dev_sync(unsigned, struct abuf *, struct abuf *);
                     47: unsigned dev_getmode(void);
1.15      ratchov    48: int dev_getpos(void);
1.20      ratchov    49: void dev_attach(char *, unsigned,
1.21    ! ratchov    50:     struct abuf *, struct aparams *, unsigned,
        !            51:     struct abuf *, struct aparams *, unsigned,
        !            52:     unsigned, int);
1.6       ratchov    53: void dev_setvol(struct abuf *, int);
1.5       ratchov    54: void dev_clear(void);
1.17      ratchov    55: void dev_prime(void);
1.1       ratchov    56:
                     57: #endif /* !define(DEV_H) */