1 /* XDigger Copyright (C) 1988-99 Alexander Lang. 2 3 XDigger is free software; you can redistribute it and/or modify 4 it under the terms of the GNU General Public License as published by 5 the Free Software Foundation; either version 2, or (at your option) 6 any later version. 7 8 XDigger is distributed in the hope that it will be useful, 9 but WITHOUT ANY WARRANTY; without even the implied warranty of 10 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 11 GNU General Public License for more details. 12 13 You should have received a copy of the GNU General Public License 14 along with this program; see the file COPYING. If not, write to 15 the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ 16 17 #ifndef _SOUND_H 18 19 #define _SOUND_H 20 21 #define TON_SCHRITT 0 22 #define TON_STEINE 1 23 #define TON_DIAMANT 2 24 25 extern void sound_init(); 26 extern void sound(char ton_typ); 27 extern void sound_done(); 28 extern void Fill_TonBuffer(int ton_low, int ton_high, int korrektur, 29 Bool sndheader); 30 31 extern int sound_device; 32 extern int ton_laenge[3]; 33 extern unsigned char ton_buffer[3][2000]; 34 35 #define SD_AUTO -1 36 #define SD_NONE 0 37 #define SD_DSP 1 38 #define SD_AUDIO 2 39 #define SD_XBELL 3 40 #define SD_RPLAY 4 41 #define SD_NAS 5 42 43 #define KC_FREQ 58472 44 45 #define TON_DSP_LOW 0x40 46 #define TON_DSP_HIGH 0xc0 47 #define TON_DSP_RATE 44100 48 #define TON_AUDIO_LOW 0x10 49 #define TON_AUDIO_HIGH 0x70 50 #define TON_AUDIO_RATE 8000 51 #define TON_NAS_LOW 0x10 52 #define TON_NAS_HIGH 0x70 53 54 #endif /* _SOUND_H */ 55