Annotation of src/usr.bin/aucat/conf.h, Revision 1.14
1.13 ratchov 1: /* $OpenBSD: conf.h,v 1.12 2010/01/10 21:47:41 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:
1.12 ratchov 20: #ifdef DEBUG
21: /*
22: * Debug trace levels:
23: *
24: * 0 - fatal errors: bugs, asserts, internal errors.
25: * 1 - warnings: bugs in clients, failed allocations, non-fatal errors.
26: * 2 - misc information (hardware parameters, incoming clients)
27: * 3 - structural changes (new aproc structures and files stream params changes)
28: * 4 - data blocks and messages
29: */
30: extern int debug_level;
31: #endif
1.4 ratchov 32:
1.9 ratchov 33: /*
1.14 ! ratchov 34: * Number of blocks in the device play/record buffers. Because Sun API
! 35: * cannot notify apps of the current positions, we have to use all N
! 36: * buffers devices blocks plus one extra block, to make write() block,
! 37: * so that poll() can return the exact postition.
! 38: */
! 39: #define DEV_NBLK 2
! 40:
! 41: /*
! 42: * Number of blocks in the wav-file i/o buffers.
! 43: */
! 44: #define WAV_NBLK 6
! 45:
! 46: /*
1.9 ratchov 47: * socket and option names
48: */
1.7 ratchov 49: #define DEFAULT_MIDITHRU "midithru"
50: #define DEFAULT_SOFTAUDIO "softaudio"
51: #define DEFAULT_OPT "default"
1.9 ratchov 52:
53: /*
54: * MIDI buffer size
55: */
1.10 ratchov 56: #define MIDI_BUFSZ 3125 /* 1 second at 31.25kbit/s */
1.11 ratchov 57:
58: /*
59: * units used for MTC clock.
60: */
61: #define MTC_SEC 2400 /* 1 second is 2400 ticks */
1.1 ratchov 62:
63: #endif /* !defined(CONF_H) */