s_sound.h (667B)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 #ifndef __S_SOUND__ 24 #define __S_SOUND__ 25 26 27 #ifdef __GNUG__ 28 #pragma interface 29 #endif 30 31 32 33 34 35 36 37 38 void 39 S_Init 40 ( int sfxVolume, 41 int musicVolume ); 42 43 44 45 46 47 48 49 50 51 void S_Start(void); 52 53 54 55 56 57 58 void 59 S_StartSound 60 ( void* origin, 61 int sound_id ); 62 63 64 65 66 void 67 S_StartSoundAtVolume 68 ( void* origin, 69 int sound_id, 70 int volume ); 71 72 73 74 void S_StopSound(void* origin); 75 76 77 78 void S_StartMusic(int music_id); 79 80 81 82 void 83 S_ChangeMusic 84 ( int music_id, 85 int looping ); 86 87 88 void S_StopMusic(void); 89 90 91 void S_PauseSound(void); 92 void S_ResumeSound(void); 93 94 95 96 97 98 void S_UpdateSounds(void* listener); 99 100 void S_SetMusicVolume(int volume); 101 void S_SetSfxVolume(int volume); 102 103 104 #endif 105 106 107 108 109