From: "Alex Volkov" <avcp-sdlmail@usa.net>
authorRyan C. Gordon <icculus@icculus.org>
Tue, 27 Sep 2005 12:14:17 +0000
changeset 1147b580f7201543
parent 1146 ab0154afe938
child 1148 63fb2da89a4b
From: "Alex Volkov" <avcp-sdlmail@usa.net>
To: "'A list for developers using the SDL library. \(includesSDL-announce\)'" <sdl@libsdl.org>
Date: Mon, 19 Sep 2005 18:59:43 -0400
Subject: [SDL] [patch] Volume multiplier bug in

The volume multiplier in SDL_MixAudio_MMX_S8() is formed from the wrong
register.
src/audio/SDL_mixer_MMX.c
     1.1 --- a/src/audio/SDL_mixer_MMX.c	Tue Sep 27 11:27:38 2005 +0000
     1.2 +++ b/src/audio/SDL_mixer_MMX.c	Tue Sep 27 12:14:17 2005 +0000
     1.3 @@ -121,7 +121,7 @@
     1.4  
     1.5  "	movl %3,%%eax\n"	// eax = volume
     1.6  
     1.7 -"	movd %%edx,%%mm0\n"
     1.8 +"	movd %%eax,%%mm0\n"
     1.9  "	movq %%mm0,%%mm1\n"
    1.10  "	psllq $16,%%mm0\n"
    1.11  "	por %%mm1,%%mm0\n"