We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ec0e4e2 commit a743fb5Copy full SHA for a743fb5
src/audio/pulseaudio/SDL_pulseaudio.c
@@ -732,7 +732,7 @@ static bool PULSEAUDIO_OpenDevice(SDL_AudioDevice *device)
732
if (!actual_bufattr) {
733
result = SDL_SetError("Could not determine connected PulseAudio stream's buffer attributes");
734
} else {
735
- device->buffer_size = (int) recording ? actual_bufattr->tlength : actual_bufattr->fragsize;
+ device->buffer_size = (int) recording ? actual_bufattr->fragsize : actual_bufattr->tlength;
736
device->sample_frames = device->buffer_size / SDL_AUDIO_FRAMESIZE(device->spec);
737
}
738
0 commit comments