123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566 |
- /* $Id$
- * MegaZeux
- *
- * Copyright (C) 1996 Greg Janson
- * Copyright (C) 1998 Matthew D. Williams - dbwilli@scsn.net
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License as
- * published by the Free Software Foundation; either version 2 of
- * the License, or (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
- */
- /* Prototypes for SFX.CPP */
- #ifndef __SFX_H
- #define __SFX_H
- #ifdef __cplusplus
- extern "C" {
- #endif
- void play_sfx(int sfx);
- void clear_sfx_queue(void);
- void sound_system(void);
- void play_note(char note,char octave,int delay);
- void submit_sound(int freq,int delay);
- char sfx_init(void);
- void sfx_exit(void);
- char is_playing(void);
- #ifdef __cplusplus
- }
- void play_str(unsigned char far *str,char sfx_play=0);
- #endif
- //Size of sound queue
- #define NOISEMAX 4096
- typedef struct
- {
- int duration;//This is the struc of the sound queue
- int freq;
- } noise;
- //Special freqs
- #define F_REST 1
- //Number of unique sound effects
- #define NUM_SFX 50
- extern unsigned char far *sfx_strs[NUM_SFX];
- extern unsigned char far *custom_sfx;//Ref. in chunks of 69
- extern char custom_sfx_on;//1 to turn on custom sfx
- #endif
|