author | nemo |
Wed, 17 Nov 2010 22:09:07 -0500 | |
changeset 4372 | 3836973380b9 |
parent 4361 | 64ea345ab655 |
child 4374 | bcefeeabaa33 |
permissions | -rw-r--r-- |
4 | 1 |
(* |
1066 | 2 |
* Hedgewars, a free turn based strategy game |
1654 | 3 |
* Copyright (c) 2005, 2007, 2009 Andrey Korotaev <unC0Rr@gmail.com> |
4 | 4 |
* |
183 | 5 |
* This program is free software; you can redistribute it and/or modify |
6 |
* it under the terms of the GNU General Public License as published by |
|
7 |
* the Free Software Foundation; version 2 of the License |
|
4 | 8 |
* |
183 | 9 |
* This program is distributed in the hope that it will be useful, |
10 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
11 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
12 |
* GNU General Public License for more details. |
|
4 | 13 |
* |
183 | 14 |
* You should have received a copy of the GNU General Public License |
15 |
* along with this program; if not, write to the Free Software |
|
16 |
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA |
|
4 | 17 |
*) |
18 |
||
2630 | 19 |
{$INCLUDE "options.inc"} |
20 |
||
4 | 21 |
unit uSound; |
22 |
interface |
|
4357
a1fcfc341a52
Introduce unit uTypes in order to remove some cyclic unit dependencies
unC0Rr
parents:
3825
diff
changeset
|
23 |
uses SDLh, uConsts, uTypes; |
4 | 24 |
|
2716
b9ca1bfca24f
complete the replacement of init/free wrappers for every unit
koda
parents:
2674
diff
changeset
|
25 |
var MusicFN: shortstring; |
b9ca1bfca24f
complete the replacement of init/free wrappers for every unit
koda
parents:
2674
diff
changeset
|
26 |
|
3038 | 27 |
procedure initModule; |
28 |
procedure freeModule; |
|
2716
b9ca1bfca24f
complete the replacement of init/free wrappers for every unit
koda
parents:
2674
diff
changeset
|
29 |
|
4 | 30 |
procedure InitSound; |
31 |
procedure ReleaseSound; |
|
32 |
procedure SoundLoad; |
|
2745 | 33 |
procedure PlaySound(snd: TSound); |
3202 | 34 |
procedure PlaySound(snd: TSound; keepPlaying: boolean); |
2745 | 35 |
procedure PlaySound(snd: TSound; voicepack: PVoicepack); |
3201 | 36 |
procedure PlaySound(snd: TSound; voicepack: PVoicepack; keepPlaying: boolean); |
3529 | 37 |
function LoopSound(snd: TSound): LongInt; |
38 |
function LoopSound(snd: TSound; voicepack: PVoicepack): LongInt; |
|
4 | 39 |
procedure PlayMusic; |
1712 | 40 |
procedure PauseMusic; |
41 |
procedure ResumeMusic; |
|
282 | 42 |
procedure StopSound(snd: TSound); |
2745 | 43 |
procedure StopSound(chn: LongInt); |
2515
51d3f4b6293a
revert audio to use SDL_mixer -- also frontend uses it, so it needs sdlmixer sources
koda
parents:
2501
diff
changeset
|
44 |
function ChangeVolume(voldelta: LongInt): LongInt; |
51d3f4b6293a
revert audio to use SDL_mixer -- also frontend uses it, so it needs sdlmixer sources
koda
parents:
2501
diff
changeset
|
45 |
function AskForVoicepack(name: shortstring): Pointer; |
4 | 46 |
|
1097 | 47 |
|
4 | 48 |
implementation |
4359 | 49 |
uses uMisc, uVariables, uConsole; |
564 | 50 |
|
3418 | 51 |
const chanTPU = 32; |
2515
51d3f4b6293a
revert audio to use SDL_mixer -- also frontend uses it, so it needs sdlmixer sources
koda
parents:
2501
diff
changeset
|
52 |
var Volume: LongInt; |
2716
b9ca1bfca24f
complete the replacement of init/free wrappers for every unit
koda
parents:
2674
diff
changeset
|
53 |
lastChan: array [TSound] of LongInt; |
b9ca1bfca24f
complete the replacement of init/free wrappers for every unit
koda
parents:
2674
diff
changeset
|
54 |
voicepacks: array[0..cMaxTeams] of TVoicepack; |
b9ca1bfca24f
complete the replacement of init/free wrappers for every unit
koda
parents:
2674
diff
changeset
|
55 |
defVoicepack: PVoicepack; |
b9ca1bfca24f
complete the replacement of init/free wrappers for every unit
koda
parents:
2674
diff
changeset
|
56 |
Mus: PMixMusic = nil; |
1654 | 57 |
|
2515
51d3f4b6293a
revert audio to use SDL_mixer -- also frontend uses it, so it needs sdlmixer sources
koda
parents:
2501
diff
changeset
|
58 |
function AskForVoicepack(name: shortstring): Pointer; |
1654 | 59 |
var i: Longword; |
60 |
begin |
|
61 |
i:= 0; |
|
3529 | 62 |
while (voicepacks[i].name <> name) and (voicepacks[i].name <> '') do |
2948
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2905
diff
changeset
|
63 |
begin |
3529 | 64 |
inc(i); |
65 |
TryDo(i <= cMaxTeams, 'Engine bug: AskForVoicepack i > cMaxTeams', true) |
|
2948
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2905
diff
changeset
|
66 |
end; |
1654 | 67 |
|
3529 | 68 |
voicepacks[i].name:= name; |
69 |
AskForVoicepack:= @voicepacks[i] |
|
1654 | 70 |
end; |
4 | 71 |
|
72 |
procedure InitSound; |
|
2647 | 73 |
var i: TSound; |
3825 | 74 |
channels: LongInt; |
4 | 75 |
begin |
2948
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2905
diff
changeset
|
76 |
if not isSoundEnabled then exit; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2905
diff
changeset
|
77 |
WriteToConsole('Init sound...'); |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2905
diff
changeset
|
78 |
isSoundEnabled:= SDL_InitSubSystem(SDL_INIT_AUDIO) >= 0; |
2671
7e0f88013fe8
smaller patches, one missing Sky-lowres, IMG_Init and Mix_Init (might require newer libraries), updates to SDL bindings, code cleanup, new compile flags
koda
parents:
2647
diff
changeset
|
79 |
|
3825 | 80 |
{$IFDEF IPHONEOS} |
81 |
channels:= 1; |
|
82 |
{$ELSE} |
|
83 |
channels:= 2; |
|
84 |
{$ENDIF} |
|
85 |
||
2948
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2905
diff
changeset
|
86 |
if isSoundEnabled then |
3825 | 87 |
isSoundEnabled:= Mix_OpenAudio(44100, $8010, channels, 1024) = 0; |
2327 | 88 |
|
3182 | 89 |
{$IFDEF SDL_MIXER_NEWER} |
90 |
WriteToConsole('Init SDL_mixer... '); |
|
91 |
SDLTry(Mix_Init(MIX_INIT_OGG) <> 0, true); |
|
92 |
WriteLnToConsole(msgOK); |
|
93 |
{$ENDIF} |
|
94 |
||
2948
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2905
diff
changeset
|
95 |
if isSoundEnabled then |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2905
diff
changeset
|
96 |
WriteLnToConsole(msgOK) |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2905
diff
changeset
|
97 |
else |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2905
diff
changeset
|
98 |
WriteLnToConsole(msgFailed); |
2647 | 99 |
|
2948
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2905
diff
changeset
|
100 |
Mix_AllocateChannels(Succ(chanTPU)); |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2905
diff
changeset
|
101 |
if isMusicEnabled then |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2905
diff
changeset
|
102 |
Mix_VolumeMusic(50); |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2905
diff
changeset
|
103 |
for i:= Low(TSound) to High(TSound) do |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2905
diff
changeset
|
104 |
lastChan[i]:= -1; |
2671
7e0f88013fe8
smaller patches, one missing Sky-lowres, IMG_Init and Mix_Init (might require newer libraries), updates to SDL bindings, code cleanup, new compile flags
koda
parents:
2647
diff
changeset
|
105 |
|
2948
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2905
diff
changeset
|
106 |
Volume:= 0; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2905
diff
changeset
|
107 |
ChangeVolume(cInitVolume) |
4 | 108 |
end; |
109 |
||
110 |
procedure ReleaseSound; |
|
2515
51d3f4b6293a
revert audio to use SDL_mixer -- also frontend uses it, so it needs sdlmixer sources
koda
parents:
2501
diff
changeset
|
111 |
var i: TSound; |
2948
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2905
diff
changeset
|
112 |
t: Longword; |
4 | 113 |
begin |
3529 | 114 |
for t:= 0 to cMaxTeams do |
115 |
if voicepacks[t].name <> '' then |
|
116 |
for i:= Low(TSound) to High(TSound) do |
|
117 |
if voicepacks[t].chunks[i] <> nil then |
|
118 |
Mix_FreeChunk(voicepacks[t].chunks[i]); |
|
2515
51d3f4b6293a
revert audio to use SDL_mixer -- also frontend uses it, so it needs sdlmixer sources
koda
parents:
2501
diff
changeset
|
119 |
|
3529 | 120 |
if Mus <> nil then |
121 |
Mix_FreeMusic(Mus); |
|
3182 | 122 |
|
123 |
{$IFDEF SDL_MIXER_NEWER} |
|
3529 | 124 |
// make sure all instances of sdl_mixer are unloaded before continuing |
125 |
while Mix_Init(0) <> 0 do |
|
126 |
Mix_Quit(); |
|
3697 | 127 |
{$ENDIF} |
3182 | 128 |
|
3529 | 129 |
Mix_CloseAudio(); |
4 | 130 |
end; |
131 |
||
132 |
procedure SoundLoad; |
|
133 |
var i: TSound; |
|
2948
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2905
diff
changeset
|
134 |
t: Longword; |
3667 | 135 |
s:shortstring; |
4 | 136 |
begin |
2948
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2905
diff
changeset
|
137 |
if not isSoundEnabled then exit; |
1656
209cf0e2fc36
Finish voicepacks support in engine (not tested though)
unc0rr
parents:
1654
diff
changeset
|
138 |
|
2948
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2905
diff
changeset
|
139 |
defVoicepack:= AskForVoicepack('Default'); |
3697 | 140 |
|
3529 | 141 |
for t:= 0 to cMaxTeams do |
142 |
if voicepacks[t].name <> '' then |
|
143 |
for i:= Low(TSound) to High(TSound) do |
|
3667 | 144 |
voicepacks[t].chunks[i]:= nil; |
3697 | 145 |
|
3667 | 146 |
for i:= Low(TSound) to High(TSound) do |
147 |
begin |
|
148 |
defVoicepack^.chunks[i]:= nil; |
|
149 |
// preload all the big sound files (>32k) that would otherwise lockup the game |
|
3697 | 150 |
if (i in [sndBeeWater, sndBee, sndCake, sndHellishImpact1, sndHellish, sndHomerun, sndMolotov, sndMortar, sndRideOfTheValkyries, sndYoohoo]) |
3667 | 151 |
and (Soundz[i].Path <> ptVoices) and (Soundz[i].FileName <> '') then |
152 |
begin |
|
153 |
s:= Pathz[Soundz[i].Path] + '/' + Soundz[i].FileName; |
|
154 |
WriteToConsole(msgLoading + s + ' '); |
|
155 |
defVoicepack^.chunks[i]:= Mix_LoadWAV_RW(SDL_RWFromFile(Str2PChar(s), 'rb'), 1); |
|
156 |
TryDo(defVoicepack^.chunks[i] <> nil, msgFailed, true); |
|
157 |
WriteLnToConsole(msgOK); |
|
158 |
end; |
|
159 |
end; |
|
3664 | 160 |
|
4 | 161 |
end; |
162 |
||
2745 | 163 |
procedure PlaySound(snd: TSound); |
164 |
begin |
|
3201 | 165 |
PlaySound(snd, nil, false); |
2745 | 166 |
end; |
167 |
||
3202 | 168 |
procedure PlaySound(snd: TSound; keepPlaying: boolean); |
169 |
begin |
|
170 |
PlaySound(snd, nil, keepPlaying); |
|
171 |
end; |
|
172 |
||
2745 | 173 |
procedure PlaySound(snd: TSound; voicepack: PVoicepack); |
4 | 174 |
begin |
3201 | 175 |
PlaySound(snd, voicepack, false); |
176 |
end; |
|
177 |
||
178 |
procedure PlaySound(snd: TSound; voicepack: PVoicepack; keepPlaying: boolean); |
|
3664 | 179 |
var s:shortstring; |
3201 | 180 |
begin |
3529 | 181 |
if (not isSoundEnabled) or fastUntilLag then |
182 |
exit; |
|
3201 | 183 |
|
3529 | 184 |
if keepPlaying and (lastChan[snd] <> -1) and (Mix_Playing(lastChan[snd]) <> 0) then |
185 |
exit; |
|
186 |
||
3664 | 187 |
if (voicepack <> nil) then |
188 |
begin |
|
189 |
if (voicepack^.chunks[snd] = nil) and (Soundz[snd].Path = ptVoices) and (Soundz[snd].FileName <> '') then |
|
190 |
begin |
|
191 |
s:= Pathz[Soundz[snd].Path] + '/' + voicepack^.name + '/' + Soundz[snd].FileName; |
|
192 |
WriteToConsole(msgLoading + s + ' '); |
|
193 |
voicepack^.chunks[snd]:= Mix_LoadWAV_RW(SDL_RWFromFile(Str2PChar(s), 'rb'), 1); |
|
194 |
if voicepack^.chunks[snd] = nil then |
|
195 |
WriteLnToConsole(msgFailed) |
|
196 |
else |
|
197 |
WriteLnToConsole(msgOK) |
|
198 |
end; |
|
3529 | 199 |
lastChan[snd]:= Mix_PlayChannelTimed(-1, voicepack^.chunks[snd], 0, -1) |
3664 | 200 |
end |
3529 | 201 |
else |
3664 | 202 |
begin |
203 |
if (defVoicepack^.chunks[snd] = nil) and (Soundz[snd].Path <> ptVoices) and (Soundz[snd].FileName <> '') then |
|
204 |
begin |
|
205 |
s:= Pathz[Soundz[snd].Path] + '/' + Soundz[snd].FileName; |
|
206 |
WriteToConsole(msgLoading + s + ' '); |
|
207 |
defVoicepack^.chunks[snd]:= Mix_LoadWAV_RW(SDL_RWFromFile(Str2PChar(s), 'rb'), 1); |
|
208 |
TryDo(defVoicepack^.chunks[snd] <> nil, msgFailed, true); |
|
209 |
WriteLnToConsole(msgOK); |
|
210 |
end; |
|
3529 | 211 |
lastChan[snd]:= Mix_PlayChannelTimed(-1, defVoicepack^.chunks[snd], 0, -1) |
3664 | 212 |
end; |
4 | 213 |
end; |
214 |
||
2745 | 215 |
function LoopSound(snd: TSound): LongInt; |
216 |
begin |
|
2948
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2905
diff
changeset
|
217 |
LoopSound:= LoopSound(snd, nil) |
2745 | 218 |
end; |
219 |
||
220 |
function LoopSound(snd: TSound; voicepack: PVoicepack): LongInt; |
|
3664 | 221 |
var s: shortstring; |
2647 | 222 |
begin |
3529 | 223 |
if (not isSoundEnabled) or fastUntilLag then |
2948
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2905
diff
changeset
|
224 |
begin |
3529 | 225 |
LoopSound:= -1; |
226 |
exit |
|
2948
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2905
diff
changeset
|
227 |
end; |
2647 | 228 |
|
3664 | 229 |
if (voicepack <> nil) then |
230 |
begin |
|
231 |
if (voicepack^.chunks[snd] = nil) and (Soundz[snd].Path = ptVoices) and (Soundz[snd].FileName <> '') then |
|
232 |
begin |
|
233 |
s:= Pathz[Soundz[snd].Path] + '/' + voicepack^.name + '/' + Soundz[snd].FileName; |
|
234 |
WriteToConsole(msgLoading + s + ' '); |
|
235 |
voicepack^.chunks[snd]:= Mix_LoadWAV_RW(SDL_RWFromFile(Str2PChar(s), 'rb'), 1); |
|
236 |
if voicepack^.chunks[snd] = nil then |
|
237 |
WriteLnToConsole(msgFailed) |
|
238 |
else |
|
239 |
WriteLnToConsole(msgOK) |
|
240 |
end; |
|
3529 | 241 |
LoopSound:= Mix_PlayChannelTimed(-1, voicepack^.chunks[snd], -1, -1) |
3664 | 242 |
end |
3529 | 243 |
else |
3664 | 244 |
begin |
245 |
if (defVoicepack^.chunks[snd] = nil) and (Soundz[snd].Path <> ptVoices) and (Soundz[snd].FileName <> '') then |
|
246 |
begin |
|
247 |
s:= Pathz[Soundz[snd].Path] + '/' + Soundz[snd].FileName; |
|
248 |
WriteToConsole(msgLoading + s + ' '); |
|
249 |
defVoicepack^.chunks[snd]:= Mix_LoadWAV_RW(SDL_RWFromFile(Str2PChar(s), 'rb'), 1); |
|
250 |
TryDo(defVoicepack^.chunks[snd] <> nil, msgFailed, true); |
|
251 |
WriteLnToConsole(msgOK); |
|
252 |
end; |
|
253 |
LoopSound:= Mix_PlayChannelTimed(-1, defVoicepack^.chunks[snd], -1, -1); |
|
254 |
end; |
|
2647 | 255 |
end; |
256 |
||
282 | 257 |
procedure StopSound(snd: TSound); |
4 | 258 |
begin |
3529 | 259 |
if not isSoundEnabled then exit; |
260 |
if (lastChan[snd] <> -1) and (Mix_Playing(lastChan[snd]) <> 0) then |
|
2948
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2905
diff
changeset
|
261 |
begin |
3529 | 262 |
Mix_HaltChannel(lastChan[snd]); |
263 |
lastChan[snd]:= -1; |
|
2948
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2905
diff
changeset
|
264 |
end; |
4 | 265 |
end; |
266 |
||
2745 | 267 |
procedure StopSound(chn: LongInt); |
268 |
begin |
|
3529 | 269 |
if not isSoundEnabled then exit; |
270 |
||
271 |
if (chn <> -1) and (Mix_Playing(chn) <> 0) then |
|
272 |
Mix_HaltChannel(chn); |
|
2745 | 273 |
end; |
274 |
||
4 | 275 |
procedure PlayMusic; |
2905 | 276 |
var s: shortstring; |
4 | 277 |
begin |
3529 | 278 |
if (not isSoundEnabled) or (MusicFN = '') or (not isMusicEnabled) then |
279 |
exit; |
|
280 |
||
281 |
s:= PathPrefix + '/Music/' + MusicFN; |
|
282 |
WriteToConsole(msgLoading + s + ' '); |
|
565 | 283 |
|
3529 | 284 |
Mus:= Mix_LoadMUS(Str2PChar(s)); |
285 |
TryDo(Mus <> nil, msgFailed, false); |
|
286 |
WriteLnToConsole(msgOK); |
|
565 | 287 |
|
3529 | 288 |
SDLTry(Mix_FadeInMusic(Mus, -1, 3000) <> -1, false) |
4 | 289 |
end; |
290 |
||
371 | 291 |
function ChangeVolume(voldelta: LongInt): LongInt; |
174 | 292 |
begin |
3529 | 293 |
if not isSoundEnabled then |
294 |
exit(0); |
|
2327 | 295 |
|
3529 | 296 |
inc(Volume, voldelta); |
297 |
if Volume < 0 then Volume:= 0; |
|
298 |
Mix_Volume(-1, Volume); |
|
299 |
Volume:= Mix_Volume(-1, -1); |
|
300 |
if isMusicEnabled then Mix_VolumeMusic(Volume * 4 div 8); |
|
301 |
ChangeVolume:= Volume * 100 div MIX_MAX_VOLUME |
|
174 | 302 |
end; |
303 |
||
1712 | 304 |
procedure PauseMusic; |
305 |
begin |
|
3529 | 306 |
if (MusicFN = '') or (not isMusicEnabled) then |
307 |
exit; |
|
2515
51d3f4b6293a
revert audio to use SDL_mixer -- also frontend uses it, so it needs sdlmixer sources
koda
parents:
2501
diff
changeset
|
308 |
|
3529 | 309 |
Mix_PauseMusic(Mus); |
1712 | 310 |
end; |
311 |
||
312 |
procedure ResumeMusic; |
|
313 |
begin |
|
3529 | 314 |
if (MusicFN = '') or (not isMusicEnabled) then |
315 |
exit; |
|
2515
51d3f4b6293a
revert audio to use SDL_mixer -- also frontend uses it, so it needs sdlmixer sources
koda
parents:
2501
diff
changeset
|
316 |
|
3529 | 317 |
Mix_ResumeMusic(Mus); |
1712 | 318 |
end; |
319 |
||
3038 | 320 |
procedure initModule; |
2716
b9ca1bfca24f
complete the replacement of init/free wrappers for every unit
koda
parents:
2674
diff
changeset
|
321 |
begin |
2948
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2905
diff
changeset
|
322 |
MusicFN:=''; |
2716
b9ca1bfca24f
complete the replacement of init/free wrappers for every unit
koda
parents:
2674
diff
changeset
|
323 |
end; |
b9ca1bfca24f
complete the replacement of init/free wrappers for every unit
koda
parents:
2674
diff
changeset
|
324 |
|
3038 | 325 |
procedure freeModule; |
2716
b9ca1bfca24f
complete the replacement of init/free wrappers for every unit
koda
parents:
2674
diff
changeset
|
326 |
begin |
3615 | 327 |
if isSoundEnabled then |
328 |
ReleaseSound(); |
|
2716
b9ca1bfca24f
complete the replacement of init/free wrappers for every unit
koda
parents:
2674
diff
changeset
|
329 |
end; |
b9ca1bfca24f
complete the replacement of init/free wrappers for every unit
koda
parents:
2674
diff
changeset
|
330 |
|
2515
51d3f4b6293a
revert audio to use SDL_mixer -- also frontend uses it, so it needs sdlmixer sources
koda
parents:
2501
diff
changeset
|
331 |
end. |
2192
4763a778c033
- Fix quickplay sound bug triggered by two faults: ttsmj's (passing voicepack with empty name in team config) and koda's (he changed fallback to default scheme condition)
unc0rr
parents:
2191
diff
changeset
|
332 |