1 2 /* 3 * Copyright 2001, 2002 David J. Hawkey Jr. 4 * 5 * Permission to use, copy, modify, and distribute this software and its 6 * documentation for any purpose and without fee is hereby granted, provided 7 * that the above copyright notice appear in all copies and that both that 8 * copyright notice and this permission notice appear in supporting 9 * documentation, and that the name of the copyright holder or the author not 10 * be used in advertising or publicity pertaining to distribution of the 11 * software without specific, written prior permission. The copyright holder 12 * and the author make no representations about the suitability of this 13 * software for any purpose. It is provided "as is" without express or 14 * implied warranty. 15 * 16 * THE COPYRIGHT HOLDER AND THE AUTHOR DISCLAIM ALL WARRANTIES WITH REGARD 17 * TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND 18 * FITNESS, IN NO EVENT SHALL THE COPYRIGHT HOLDER OR THE AUTHOR BE LIABLE 19 * FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 20 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 21 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF 22 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 23 */ 24 25 /* 26 * sound.h 27 * 28 * D. J. Hawkey Jr. - 6/22/01 11/15/02 29 */ 30 31 #ifndef _SOUND_ 32 #define _SOUND_ 33 34 /* must not overlap the function defines */ 35 #define S_START 900 36 #define S_STOP 901 37 #define S_CMAP 902 38 #define S_CUNMAP 903 39 #define S_MMAP 904 40 #define S_MUNMAP 905 41 #define S_IUNMAP 906 42 #define S_APAN 907 43 #define S_BELL 908 44 45 extern int OpenSound(), SetSound(char *function, char *filename, int volume), ToggleSounds(); 46 extern int PlaySound(int function), PlaySoundAdhoc(char *filename); 47 extern void CloseSound(), SetSoundHost(char *host), SetSoundVolume(int volume); 48 49 #endif /* _SOUND_ */ 50