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

Annotation of src/usr.bin/aucat/conf.h, Revision 1.10

1.10    ! ratchov     1: /*     $OpenBSD: conf.h,v 1.9 2009/08/17 16:17:46 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:  */
1.3       ratchov    17: #ifndef CONF_H
                     18: #define CONF_H
1.1       ratchov    19:
                     20:
1.4       ratchov    21: /*
1.8       ratchov    22:  * Number of blocks in the device play/record buffers.  Because Sun API
1.4       ratchov    23:  * cannot notify apps of the current positions, we have to use all N
                     24:  * buffers devices blocks plus one extra block, to make write() block,
                     25:  * so that poll() can return the exact postition.
                     26:  */
                     27: #define DEV_NBLK 2
                     28:
                     29: /*
1.8       ratchov    30:  * Number of blocks in the wav-file i/o buffers.
1.4       ratchov    31:  */
                     32: #define WAV_NBLK 6
                     33:
1.9       ratchov    34: /*
                     35:  * socket and option names
                     36:  */
1.7       ratchov    37: #define DEFAULT_MIDITHRU       "midithru"
                     38: #define DEFAULT_SOFTAUDIO      "softaudio"
                     39: #define DEFAULT_OPT            "default"
1.9       ratchov    40:
                     41: /*
                     42:  * MIDI buffer size
                     43:  */
1.10    ! ratchov    44: #define MIDI_BUFSZ             3125    /* 1 second at 31.25kbit/s */
1.1       ratchov    45:
                     46: #endif /* !defined(CONF_H) */