1 /* sound.h 2 Handles all sound events / background music 3 4 Copyright (C) 2000 Mathias Broxvall 5 Yannick Perret 6 7 This program is free software; you can redistribute it and/or modify 8 it under the terms of the GNU General Public License as published by 9 the Free Software Foundation; either version 2 of the License, or 10 (at your option) any later version. 11 12 This program is distributed in the hope that it will be useful, 13 but WITHOUT ANY WARRANTY; without even the implied warranty of 14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 GNU General Public License for more details. 16 17 You should have received a copy of the GNU General Public License 18 along with this program; if not, write to the Free Software 19 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 20 */ 21 22 #ifndef SOUND_H 23 #define SOUND_H 24 25 #include "general.h" 26 27 void soundInit(); 28 void soundIdle(Real td); 29 void playEffect(int, float vol); 30 void playEffect(int); 31 void volumeChanged(); 32 void playEffect(const char *name); 33 void playEffect(const char *name, float vol); 34 void clearMusicPreferences(); 35 void setMusicPreference(char *name, int weight); 36 void playNextSong(); 37 38 #define SFX_PLAYER_DIES "die.wav" // 0 39 #define SFX_START "start.wav" // 1 40 #define SFX_GOT_LIFE "start.wav" 41 #define SFX_GOT_FLAG "flag.wav" // 2 42 #define SFX_GOT_GOODPILL "goodpill.wav" 43 #define SFX_GOT_BADPILL "badpill.wav" 44 #define SFX_GOT_SAVEPOINT "savepoint.wav" 45 #define SFX_LV_COMPLETE "levelComplete.wav" // 3 46 #define SFX_TIMEOUT "timeout.wav" 47 #define SFX_BLACK_DIE "blackDie.wav" // 4 48 #define SFX_TIME_WARNING "time_warning.wav" // 5 49 #define SFX_FF_DEATH "ff_death.wav" // 6 50 #define SFX_SAND_CRASH "sandcrash.wav" // 7 51 #define SFX_SWITCH "switch.wav" // 8 52 #define SFX_CACTUS_DIE "blackDie.wav" // 9 53 #define SFX_BIRD_DIE "blackDie.wav" // 10 54 #define SFX_SPIKE "switch.wav" // 11 55 #define N_EFFECTS n_effects // 12 56 57 /* Needed sound effects 58 SFX_CACTUS_DIE - maybe some "squishy" 59 SFX_BIRD_DIE - a bird shriek? 60 SFX_SPIKE - 61 62 sound when getting diamong (currently is SFX_GOT_FLAG) 63 SFX_TELEPORT - 64 SFX_TELEPORT_ABIENT - 65 66 67 Maybe imrpove 68 ff_death 69 sandcrash 70 */ 71 72 #endif 73