SOURCES: apricots-alut.patch (NEW) - new OpenAL
wolf
wolf at pld-linux.org
Sun May 28 21:09:50 CEST 2006
Author: wolf Date: Sun May 28 19:09:50 2006 GMT
Module: SOURCES Tag: HEAD
---- Log message:
- new OpenAL
---- Files affected:
SOURCES:
apricots-alut.patch (NONE -> 1.1) (NEW)
---- Diffs:
================================================================
Index: SOURCES/apricots-alut.patch
diff -u /dev/null SOURCES/apricots-alut.patch:1.1
--- /dev/null Sun May 28 21:09:50 2006
+++ SOURCES/apricots-alut.patch Sun May 28 21:09:45 2006
@@ -0,0 +1,23 @@
+diff -ruN apricots-0.2.6./apricots/sampleio.cpp apricots-0.2.6/apricots/sampleio.cpp
+--- apricots-0.2.6./apricots/sampleio.cpp 2003-08-06 01:21:22.000000000 +0200
++++ apricots-0.2.6/apricots/sampleio.cpp 2006-05-28 20:44:53.445515024 +0200
+@@ -80,17 +80,12 @@
+ for (int i = 0; i < numsamples; i++){
+ ALsizei freq;
+ ALboolean fileok;
+- // Evil OpenAL portability fix done here
+-#ifdef _WIN32
++
+ ALenum format;
+ ALboolean trash;
+ alutLoadWAVFile(filenames[i],&format,&data,&filelen,&freq,&trash);
+ fileok = (alGetError() == AL_NO_ERROR);
+-#else
+- ALsizei format;
+- ALsizei trash;
+- fileok = alutLoadWAV(filenames[i],&data,&format,&filelen,&trash,&freq);
+-#endif
++
+ if (!fileok){
+ cerr << "sampleio: could not open " << filenames[i] << endl;
+ exit(1);
================================================================
More information about the pld-cvs-commit
mailing list