We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fda7c0b commit 764d763Copy full SHA for 764d763
src/audio/directsound/SDL_directsound.c
@@ -545,7 +545,7 @@ static bool DSOUND_OpenDevice(SDL_AudioDevice *device)
545
tried_format = true;
546
547
device->spec.format = test_format;
548
- device->spec.freq = SDL_min(200000, device->spec.freq); // DirectSound has an arbitrary limit of 200,000Hz.
+ device->spec.freq = SDL_min(DSBFREQUENCY_MAX, device->spec.freq);
549
550
// Update the fragment size as size in bytes
551
SDL_UpdatedAudioDeviceFormat(device);
0 commit comments