src/audio/SDL_mixer.c
changeset 574 64fe373be3dc
parent 539 a9e38f3b8e4d
child 633 873c2598f969
     1.1 --- a/src/audio/SDL_mixer.c	Mon Jan 20 02:34:04 2003 +0000
     1.2 +++ b/src/audio/SDL_mixer.c	Mon Jan 20 16:01:20 2003 +0000
     1.3 @@ -36,6 +36,7 @@
     1.4  #include "SDL_timer.h"
     1.5  #include "SDL_sysaudio.h"
     1.6  #include "SDL_mixer_MMX.h"
     1.7 +#include "SDL_mixer_MMX_VC.h"
     1.8  
     1.9  /* Function to check the CPU flags */
    1.10  #define MMX_CPU		0x800000
    1.11 @@ -147,7 +148,6 @@
    1.12  		break;
    1.13  
    1.14  		case AUDIO_S8: {
    1.15 -
    1.16  #if defined(i386) && defined(__GNUC__) && defined(USE_ASMBLIT)
    1.17  			if (CPU_Flags() & MMX_CPU)
    1.18  			{
    1.19 @@ -155,6 +155,13 @@
    1.20  			}
    1.21  			else
    1.22  #endif
    1.23 +#if defined(USE_ASM_MIXER_VC)
    1.24 +			if (SDL_IsMMX_VC())
    1.25 +			{
    1.26 +				SDL_MixAudio_MMX_S8_VC((char*)dst,(char*)src,(unsigned int)len,(int)volume);
    1.27 +			}
    1.28 +			else
    1.29 +#endif
    1.30  			{
    1.31  			Sint8 *dst8, *src8;
    1.32  			Sint8 src_sample;
    1.33 @@ -190,6 +197,12 @@
    1.34  				SDL_MixAudio_MMX_S16((char*)dst,(char*)src,(unsigned int)len,(int)volume);
    1.35  			}
    1.36  			else
    1.37 +#elif defined(USE_ASM_MIXER_VC)
    1.38 +			if (SDL_IsMMX_VC())
    1.39 +			{
    1.40 +				SDL_MixAudio_MMX_S16_VC((char*)dst,(char*)src,(unsigned int)len,(int)volume);
    1.41 +			}
    1.42 +			else
    1.43  #endif
    1.44  			{
    1.45  			Sint16 src1, src2;
    1.46 @@ -251,3 +264,4 @@
    1.47  			return;
    1.48  	}
    1.49  }
    1.50 +