Rev 333 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 333 | Rev 342 | ||
---|---|---|---|
Line 43... | Line 43... | ||
43 | 43 | ||
Line 44... | Line 44... | ||
44 | #include "doomstat.h" |
44 | #include "doomstat.h" |
Line -... | Line 45... | ||
- | 45 | ||
- | 46 | //#include "qmus2mid.h" |
|
- | 47 | ||
45 | 48 | ||
Line 46... | Line 49... | ||
46 | //#include "qmus2mid.h" |
49 | #include "kolibri.h" |
47 | 50 | ||
48 | void WriteDebug(char *); |
51 | void WriteDebug(char *); |
Line 110... | Line 113... | ||
110 | static channel_t* channels; |
113 | static channel_t* channels; |
Line 111... | Line 114... | ||
111 | 114 | ||
112 | // These are not used, but should be (menu). |
115 | // These are not used, but should be (menu). |
113 | // Maximum volume of a sound effect. |
116 | // Maximum volume of a sound effect. |
114 | // Internal default is max out of 0-15. |
117 | // Internal default is max out of 0-15. |
Line 115... | Line 118... | ||
115 | int snd_SfxVolume = 80; |
118 | int snd_SfxVolume = 15; |
116 | 119 | ||
Line 117... | Line 120... | ||
117 | // Maximum volume of music. Useless so far. |
120 | // Maximum volume of music. Useless so far. |
118 | int snd_MusicVolume = 80; |
121 | int snd_MusicVolume = 15; |
Line 159... | Line 162... | ||
159 | // |
162 | // |
160 | // Initializes sound stuff, including volume |
163 | // Initializes sound stuff, including volume |
161 | // Sets channels, SFX and music volume, |
164 | // Sets channels, SFX and music volume, |
162 | // allocates channel buffer, sets S_sfx lookup. |
165 | // allocates channel buffer, sets S_sfx lookup. |
163 | // |
166 | // |
- | 167 | ||
- | 168 | DWORD hMixBuff[4]; |
|
- | 169 | int mix_ptr; |
|
- | 170 | ||
164 | void S_Init |
171 | void S_Init |
165 | ( int sfxVolume, |
172 | ( int sfxVolume, |
166 | int musicVolume ) |
173 | int musicVolume ) |
167 | { |
174 | { |
168 | int i; |
175 | int i; |
Line 169... | Line 176... | ||
169 | 176 | ||
Line 170... | Line 177... | ||
170 | printf("S_Init: default sfx volume %d\n", sfxVolume); |
177 | printf("S_Init: default sfx volume %d\n", sfxVolume); |
- | 178 | ||
- | 179 | InitSound(); |
|
- | 180 | ||
- | 181 | hMixBuff[0]= CreateBuffer(15); |
|
- | 182 | hMixBuff[1]= CreateBuffer(15); |
|
- | 183 | hMixBuff[2]= CreateBuffer(15); |
|
171 | 184 | hMixBuff[3]= CreateBuffer(15); |
|
Line 172... | Line 185... | ||
172 | //I_CreateSound(); |
185 | |
173 | numChannels = NUM_CHANNELS; |
186 | numChannels = NUM_CHANNELS; |