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. --HG-- extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401150
This commit is contained in:
parent
a4387baa5a
commit
e140cfc98d
1 changed files with 1 additions and 1 deletions
|
@ -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"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue