Subversion Repositories Games.Carmageddon

Rev

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