tags 318719 + patch
thanks robot

Looking at the sources and poking around a little. I can always
briefly here the sound, and then the crash (backtrace above) and the
bug is the same (no two bugs as outlined above), i.e., it crashes at
the same spot, same reason all the time. It works, if you apply the
attached patch (I played the first two levels with sound with no
previous config file in my home dirctory, i.e. it was created
automatically with sound). I derived the patch by finding this "ugly
hack" and knowing that assumptions about sizeof(int) are often
problems on 64bit architectures. So I don't know if this patch
actually is the right way to fix this; please check on a 32bit
architecture.

If you want me to test a "better" patch please tell me.

Greetings

          Helge
-- 
      Dr. Helge Kreutzmann                     [EMAIL PROTECTED]
           Dipl.-Phys.                   http://www.helgefjell.de/debian.php
        64bit GNU powered                     gpg signed mail preferred
           Help keep free software "libre": http://www.ffii.de/
--- audiomixer.cc.orig  2006-06-12 15:18:08.000000000 +0200
+++ audiomixer.cc       2006-06-15 18:19:25.309002840 +0200
@@ -350,7 +350,8 @@
                return (erreur_num = E_SDLMIXER);
        }
        // Ugly way to access sdl-mixer's internal structures.
-       memcpy(&ptModAmiga, (Uint8 *)pMixmodule + sizeof(int), sizeof(void *));
+       // memcpy(&ptModAmiga, (Uint8 *)pMixmodule + sizeof(int), sizeof(void 
*));
+       memcpy(&ptModAmiga, (Uint8 *)pMixmodule + sizeof(long), sizeof(void *));
 
 
        //###################################################################
@@ -459,7 +460,7 @@
 void audiomixer::mus_handle()
 {      
        if (!ptModAmiga) return;
-       
+
        if(lastsngpos != ptModAmiga->sngpos)
                lastsngpos = ptModAmiga->sngpos;
                

Attachment: signature.asc
Description: Digital signature

Reply via email to