Sophie

Sophie

distrib > Fedora > 15 > i386 > by-pkgid > 3a2f07212f36dd97b99abf7c7bc433c5 > files > 3

TnL-071111-13.fc14.src.rpm

diff -up TnL-source-071111/src/sound.cc~ TnL-source-071111/src/sound.cc
--- TnL-source-071111/src/sound.cc~	2007-06-27 19:58:11.000000000 +0200
+++ TnL-source-071111/src/sound.cc	2010-06-04 08:54:22.524385601 +0200
@@ -31,7 +31,7 @@ static void alCheck() {
     ALenum error = alGetError();
     if (error != AL_NO_ERROR) {
         ls_error("OpenAL Error %d", error);
-        const ALbyte * errtxt = alGetString(error);
+        const ALchar * errtxt = alGetString(error);
         error = alGetError();
         if (error == AL_NO_ERROR) {
             ls_error(": %s \n", errtxt);
@@ -318,7 +318,7 @@ static void check(ALCdevice *dev=NULL) {
     ALCenum error = alcGetError(dev);
     if (error != ALC_NO_ERROR) {
         ls_error("OpenAL (ALC) Error %d", error);
-        const ALbyte * errtxt = alcGetString(NULL,error);
+        const ALCchar * errtxt = alcGetString(NULL,error);
         error = alcGetError(dev);
         if (error == ALC_NO_ERROR) {
             ls_error(": %s \n", errtxt);
@@ -340,7 +340,7 @@ SoundMan::SoundMan(Ptr<IConfig> config)
     if (device == NULL ) {
         throw std::runtime_error("SoundMan: Failed to initialize Sound subsystem.");
     } else {
-        const ALCbyte * device_specifier =
+        const ALCchar * device_specifier =
             alcGetString(device, ALC_DEVICE_SPECIFIER);
         check(device);
         ls_message("  Using device \"%s\"\n", device_specifier);