mirror of
https://github.com/yawut/SDL.git
synced 2026-08-23 09:15:18 -05:00
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.
This commit is contained in:
@@ -121,7 +121,7 @@ void SDL_MixAudio_MMX_S8(char* dst,char* src,unsigned int size,int volume)
|
||||
|
||||
" movl %3,%%eax\n" // eax = volume
|
||||
|
||||
" movd %%edx,%%mm0\n"
|
||||
" movd %%eax,%%mm0\n"
|
||||
" movq %%mm0,%%mm1\n"
|
||||
" psllq $16,%%mm0\n"
|
||||
" por %%mm1,%%mm0\n"
|
||||
|
||||
Reference in New Issue
Block a user