1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-05 01:55:52 +00:00
freebsd-ports/games/atr3d/files/patch-sound.cpp
Oliver Lehmann c36bc8fc88 update to openal 20060211 [1]
fix dependant ports [2]

PR:		ports/96172 [1]
		ports/95192 [2]
Submitted by:	maintainer  [1]
		oliver      [2]
Approved by:	maintainer
2006-04-23 10:14:30 +00:00

22 lines
568 B
C++

--- sound.cpp.orig Wed Mar 29 15:09:51 2006
+++ sound.cpp Wed Mar 29 15:11:11 2006
@@ -288,6 +288,7 @@
{
int i;
char filename[1000];
+ ALboolean loop;
for (i=0; i<NUM_SOUNDS; i++) {
#ifdef WINDOWS
@@ -296,8 +297,8 @@
sprintf(filename, "%s/atr3d/sounds/%d.wav", DATADIR, i);
#endif
- alutLoadWAV(filename, &Wavs[i].wave, &Wavs[i].format,
- &Wavs[i].size, &Wavs[i].bits, &Wavs[i].freq);
+ alutLoadWAVFile((ALbyte*)filename, &Wavs[i].format, &Wavs[i].wave,
+ &Wavs[i].size, &Wavs[i].freq, &loop);
}
}
#endif