summaryrefslogtreecommitdiff
path: root/games/vdrift/files/patch-src_sound.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'games/vdrift/files/patch-src_sound.cpp')
-rw-r--r--games/vdrift/files/patch-src_sound.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/games/vdrift/files/patch-src_sound.cpp b/games/vdrift/files/patch-src_sound.cpp
new file mode 100644
index 000000000000..8819c41a060a
--- /dev/null
+++ b/games/vdrift/files/patch-src_sound.cpp
@@ -0,0 +1,14 @@
+--- src/sound.cpp.orig Tue Sep 12 19:39:38 2006
++++ src/sound.cpp Tue Sep 12 19:41:19 2006
+@@ -282,9 +282,9 @@
+ alutLoadWAVFile((ALbyte*)(filename).c_str(), &format, &data, &size, &freq);
+ #else
+ #ifdef OLD_OPENAL
+- alutLoadWAVFile((ALbyte*)(filename).c_str(), &format, &data, &size, &freq, &loop);
++ alutLoadWAVFile(filename.c_str(), &format, &data, &size, &freq, &loop);
+ #else
+- data = alutLoadMemoryFromFile((ALbyte*)(filename).c_str(), &format, &size, &freq);
++ data = alutLoadMemoryFromFile(filename.c_str(), &format, &size, &freq);
+ #endif
+ #endif
+ //bool err = LoadWave(filename, &format, &data, &size, &freq, &loop);