Rev 18 | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
1 | pmbaty | 1 | #ifndef _SOUND_H_ |
2 | #define _SOUND_H_ |
||
3 | |||
20 | pmbaty | 4 | #include "brender/br_types.h" |
1 | pmbaty | 5 | #include "dr_types.h" |
6 | |||
7 | extern int gSound_detail_level; |
||
8 | extern int gVirgin_pass; |
||
9 | extern int gOld_sound_detail_level; |
||
10 | extern int gLast_tune; |
||
11 | extern int gRandom_MIDI_tunes[3]; |
||
12 | extern int gRandom_Rockin_MIDI_tunes[3]; |
||
13 | extern int gRandom_CDA_tunes[7]; |
||
14 | extern int gCDA_is_playing; |
||
15 | extern int gServicing_sound; |
||
16 | extern int gSong_repeat_count; |
||
17 | extern int gSound_sources_inited; |
||
18 | extern int gMusic_available; |
||
19 | extern tS3_sound_tag gCDA_tag; |
||
20 | extern int gCD_fully_installed; |
||
21 | extern tS3_outlet_ptr gEffects_outlet; |
||
22 | extern tS3_outlet_ptr gCar_outlet; |
||
23 | extern tS3_outlet_ptr gEngine_outlet; |
||
24 | extern tS3_outlet_ptr gDriver_outlet; |
||
25 | extern tS3_outlet_ptr gPedestrians_outlet; |
||
26 | extern tS3_outlet_ptr gMusic_outlet; |
||
27 | extern tS3_sound_id gMIDI_id; |
||
28 | extern tS3_outlet_ptr gIndexed_outlets[6]; |
||
29 | extern tU32 gLast_sound_service; |
||
30 | extern int gCD_is_disabled; |
||
31 | extern br_vector3 gCamera_left; |
||
32 | extern br_vector3 gCamera_position; |
||
33 | extern br_vector3 gOld_camera_position; |
||
34 | extern br_vector3 gCamera_velocity; |
||
35 | |||
36 | void UsePathFileToDetermineIfFullInstallation(void); |
||
37 | |||
38 | void InitSound(void); |
||
39 | |||
40 | tS3_sound_tag DRS3StartSound(tS3_outlet_ptr pOutlet, tS3_sound_id pSound); |
||
41 | |||
42 | tS3_sound_tag DRS3StartSoundNoPiping(tS3_outlet_ptr pOutlet, tS3_sound_id pSound); |
||
43 | |||
44 | tS3_sound_tag DRS3StartSound2(tS3_outlet_ptr pOutlet, tS3_sound_id pSound, tS3_repeats pRepeats, tS3_volume pLVolume, tS3_volume pRVolume, tS3_pitch pPitch, tS3_speed pSpeed); |
||
45 | |||
46 | int DRS3ChangeVolume(tS3_sound_tag pSound_tag, tS3_volume pNew_volume); |
||
47 | |||
48 | int DRS3ChangeLRVolume(tS3_sound_tag pSound_tag, tS3_volume pNew_Lvolume, tS3_volume pNew_Rvolume); |
||
49 | |||
50 | int DRS3ChangePitch(tS3_sound_tag pTag, tS3_pitch pNew_pitch); |
||
51 | |||
52 | int DRS3ChangeSpeed(tS3_sound_tag pTag, tS3_pitch pNew_speed); |
||
53 | |||
54 | int DRS3ChangePitchSpeed(tS3_sound_tag pTag, tS3_pitch pNew_pitch); |
||
55 | |||
56 | int DRS3StopSound(tS3_sound_tag pSound_tag); |
||
57 | |||
58 | int DRS3LoadSound(tS3_sound_id pThe_sound); |
||
59 | |||
60 | int DRS3ReleaseSound(tS3_sound_id pThe_sound); |
||
61 | |||
62 | void DRS3Service(void); |
||
63 | |||
64 | int DRS3OutletSoundsPlaying(tS3_outlet_ptr pOutlet); |
||
65 | |||
66 | int DRS3SoundStillPlaying(tS3_sound_tag pSound_tag); |
||
67 | |||
68 | void DRS3ShutDown(void); |
||
69 | |||
70 | int DRS3SetOutletVolume(tS3_outlet_ptr pOutlet, tS3_volume pVolume); |
||
71 | |||
72 | int DRS3OverallVolume(tS3_volume pVolume); |
||
73 | |||
74 | int DRS3StopOutletSound(tS3_outlet_ptr pOutlet); |
||
75 | |||
76 | int DRS3StopAllOutletSounds(void); |
||
77 | |||
78 | void ToggleSoundEnable(void); |
||
79 | |||
80 | void SoundService(void); |
||
81 | |||
82 | void InitSoundSources(void); |
||
83 | |||
84 | void DisposeSoundSources(void); |
||
85 | |||
86 | tS3_sound_tag DRS3StartSound3D(tS3_outlet_ptr pOutlet, tS3_sound_id pSound, br_vector3* pInitial_position, br_vector3* pInitial_velocity, tS3_repeats pRepeats, tS3_volume pVolume, tS3_pitch pPitch, tS3_speed pSpeed); |
||
87 | |||
88 | tS3_sound_tag DRS3StartSoundFromSource3(tS3_sound_source_ptr pSource, tS3_sound_id pSound, tS3_repeats pRepeats, tS3_volume pVolume, tS3_pitch pPitch, tS3_speed pSpeed); |
||
89 | |||
90 | tS3_sound_tag DRS3StartSoundFromSource(tS3_sound_source_ptr pSource, tS3_sound_id pSound); |
||
91 | |||
92 | void MungeEngineNoise(void); |
||
93 | |||
94 | void SetSoundVolumes(void); |
||
95 | |||
96 | tS3_outlet_ptr GetOutletFromIndex(int pIndex); |
||
97 | |||
98 | int GetIndexFromOutlet(tS3_outlet_ptr pOutlet); |
||
99 | |||
100 | int DRS3StartCDA(tS3_sound_id pCDA_id); |
||
101 | |||
102 | int DRS3StopCDA(void); |
||
103 | |||
104 | void StartMusic(void); |
||
105 | |||
106 | void StopMusic(void); |
||
107 | |||
108 | #endif |