mirror of
https://github.com/Relintai/sdl2_frt.git
synced 2024-12-16 11:06:49 +01:00
audio: Needed to fix two more instances for Visual Studio.
This commit is contained in:
parent
0ad4b0b697
commit
101544d6f0
@ -809,7 +809,7 @@ SDL_Convert_F32_to_S32_SSE2(SDL_AudioCVT *cvt, SDL_AudioFormat format)
|
|||||||
if (sample >= 1.0f) {
|
if (sample >= 1.0f) {
|
||||||
*dst = 2147483647;
|
*dst = 2147483647;
|
||||||
} else if (sample <= -1.0f) {
|
} else if (sample <= -1.0f) {
|
||||||
*dst = -2147483648;
|
*dst = (Sint32) -2147483648LL;
|
||||||
} else {
|
} else {
|
||||||
*dst = ((Sint32)(sample * 8388607.0f)) << 8;
|
*dst = ((Sint32)(sample * 8388607.0f)) << 8;
|
||||||
}
|
}
|
||||||
@ -837,7 +837,7 @@ SDL_Convert_F32_to_S32_SSE2(SDL_AudioCVT *cvt, SDL_AudioFormat format)
|
|||||||
if (sample >= 1.0f) {
|
if (sample >= 1.0f) {
|
||||||
*dst = 2147483647;
|
*dst = 2147483647;
|
||||||
} else if (sample <= -1.0f) {
|
} else if (sample <= -1.0f) {
|
||||||
*dst = -2147483648;
|
*dst = (Sint32) -2147483648LL;
|
||||||
} else {
|
} else {
|
||||||
*dst = ((Sint32)(sample * 8388607.0f)) << 8;
|
*dst = ((Sint32)(sample * 8388607.0f)) << 8;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user