Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
icculus committed Sep 27, 2005
1 parent 64a9364 commit 6b69943
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/audio/SDL_mixer_MMX.c
Expand Up @@ -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"
Expand Down

0 comments on commit 6b69943

Please sign in to comment.