|
|
| version 1.1, 2003/11/16 16:43:45 | version 1.2, 2003/11/18 14:32:48 |
|---|---|
| Line 95 static BOOL nosound_setup(void); | Line 95 static BOOL nosound_setup(void); |
| static void PARTSCALL (*fnmix)(SINT16* dst, const SINT32* src, UINT size); | static void PARTSCALL (*fnmix)(SINT16* dst, const SINT32* src, UINT size); |
| #if defined(__GNUC__) && (defined(i386) || defined(__i386__)) | #if defined(__GNUC__) && (defined(i386) || defined(__i386__)) |
| void PARTSCALL _satuation_s16(SINT16 *dst, const SINT32 *src, UINT size); | void PARTSCALL _saturation_s16(SINT16 *dst, const SINT32 *src, UINT size); |
| void PARTSCALL _satuation_s16x(SINT16 *dst, const SINT32 *src, UINT size); | void PARTSCALL _saturation_s16x(SINT16 *dst, const SINT32 *src, UINT size); |
| void PARTSCALL satuation_s16mmx(SINT16 *dst, const SINT32 *src, UINT size); | void PARTSCALL saturation_s16mmx(SINT16 *dst, const SINT32 *src, UINT size); |
| #endif | #endif |
| /* | /* |
| Line 232 soundmng_create(UINT rate, UINT bufmsec) | Line 232 soundmng_create(UINT rate, UINT bufmsec) |
| return 0; | return 0; |
| } | } |
| snddrv_setup(); | if (bufmsec < 20) |
| bufmsec = 20; | |
| if (bufmsec < 50) { | else if (bufmsec > 1000) |
| bufmsec = 50; | |
| } else if (bufmsec > 1000) { | |
| bufmsec = 1000; | bufmsec = 1000; |
| } | |
| snddrv_setup(); | |
| samples = (rate * bufmsec) / 1000 / 2; | samples = (rate * bufmsec) / 1000 / 2; |
| samples = calc_blocksize(samples); | samples = calc_blocksize(samples); |
| Line 293 soundmng_destroy(void) | Line 292 soundmng_destroy(void) |
| (*snddrv.sndstop)(); | (*snddrv.sndstop)(); |
| (*snddrv.drvterm)(); | (*snddrv.drvterm)(); |
| buffer_destroy(); | buffer_destroy(); |
| nosound_setup(); | |
| audio_fd = -1; | audio_fd = -1; |
| opened = FALSE; | opened = FALSE; |
| } | } |
| Line 358 soundmng_setreverse(BOOL reverse) | Line 358 soundmng_setreverse(BOOL reverse) |
| #if defined(__GNUC__) && (defined(i386) || defined(__i386__)) | #if defined(__GNUC__) && (defined(i386) || defined(__i386__)) |
| if (!reverse) { | if (!reverse) { |
| if (mmxflag & (MMXFLAG_NOTSUPPORT|MMXFLAG_DISABLE)) { | if (mmxflag & (MMXFLAG_NOTSUPPORT|MMXFLAG_DISABLE)) { |
| fnmix = _satuation_s16; | fnmix = _saturation_s16; |
| } else { | } else { |
| fnmix = satuation_s16mmx; | fnmix = saturation_s16mmx; |
| } | } |
| } else { | } else { |
| fnmix = _satuation_s16x; | fnmix = _saturation_s16x; |
| } | } |
| #else | #else |
| if (!reverse) { | if (!reverse) { |
| Line 659 snddrv_stop(void) | Line 659 snddrv_stop(void) |
| #if defined(__GNUC__) && (defined(i386) || defined(__i386__)) | #if defined(__GNUC__) && (defined(i386) || defined(__i386__)) |
| void PARTSCALL | void PARTSCALL |
| _satuation_s16(SINT16 *dst, const SINT32 *src, UINT size) | _saturation_s16(SINT16 *dst, const SINT32 *src, UINT size) |
| { | { |
| asm volatile ( | asm volatile ( |
| "movl %0, %%ecx;" | "movl %0, %%ecx;" |
| Line 690 _satuation_s16(SINT16 *dst, const SINT32 | Line 690 _satuation_s16(SINT16 *dst, const SINT32 |
| } | } |
| void PARTSCALL | void PARTSCALL |
| _satuation_s16x(SINT16 *dst, const SINT32 *src, UINT size) | _saturation_s16x(SINT16 *dst, const SINT32 *src, UINT size) |
| { | { |
| asm volatile ( | asm volatile ( |
| Line 733 _satuation_s16x(SINT16 *dst, const SINT3 | Line 733 _satuation_s16x(SINT16 *dst, const SINT3 |
| } | } |
| void PARTSCALL | void PARTSCALL |
| satuation_s16mmx(SINT16 *dst, const SINT32 *src, UINT size) | saturation_s16mmx(SINT16 *dst, const SINT32 *src, UINT size) |
| { | { |
| asm volatile ( | asm volatile ( |