mirror of
https://github.com/Relintai/sdl2_frt.git
synced 2024-12-16 11:06:49 +01:00
Fixed Windows build
This commit is contained in:
parent
5298830945
commit
6ed8213049
@ -212,7 +212,7 @@ static void SDLCALL
|
|||||||
SDL_Convert_Byteswap(SDL_AudioCVT *cvt, SDL_AudioFormat format)
|
SDL_Convert_Byteswap(SDL_AudioCVT *cvt, SDL_AudioFormat format)
|
||||||
{
|
{
|
||||||
#if DEBUG_CONVERT
|
#if DEBUG_CONVERT
|
||||||
fprintf(stderr, "Converting byte order\n");
|
printf("Converting byte order\n");
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
switch (SDL_AUDIO_BITSIZE(format)) {
|
switch (SDL_AUDIO_BITSIZE(format)) {
|
||||||
@ -487,7 +487,7 @@ SDL_BuildAudioCVT(SDL_AudioCVT * cvt,
|
|||||||
if ((src_rate == 0) || (dst_rate == 0)) {
|
if ((src_rate == 0) || (dst_rate == 0)) {
|
||||||
return SDL_SetError("Source or destination rate is zero");
|
return SDL_SetError("Source or destination rate is zero");
|
||||||
}
|
}
|
||||||
#ifdef DEBUG_CONVERT
|
#if DEBUG_CONVERT
|
||||||
printf("Build format %04x->%04x, channels %u->%u, rate %d->%d\n",
|
printf("Build format %04x->%04x, channels %u->%u, rate %d->%d\n",
|
||||||
src_fmt, dst_fmt, src_channels, dst_channels, src_rate, dst_rate);
|
src_fmt, dst_fmt, src_channels, dst_channels, src_rate, dst_rate);
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user