diff --git a/src/sdl/al_sound.c b/src/sdl/al_sound.c index bf776c055..c52ac3344 100644 --- a/src/sdl/al_sound.c +++ b/src/sdl/al_sound.c @@ -398,11 +398,11 @@ static boolean I_QueueNextSample(boolean unqueue) if (sample_format == Float) { - count = sf_read_float(audio.musicstream, (float *)stream, BUFFERSIZE) * 4; // float is 4 bytes not 2, so just double this shit for now kek + count = sf_read_float(audio.musicstream, (float *)stream, BUFFERSIZE) * sizeof(float); // float is 4 bytes not 2, so just double this shit for now kek } else { - count = sf_read_short(audio.musicstream, stream, BUFFERSIZE) * 2; + count = sf_read_short(audio.musicstream, (short *)stream, BUFFERSIZE) * sizeof(short); } if (count == 0)