mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-06-06 14:43:20 +00:00
Use DSBFREQUENCY_MAX instead of hardcoded constant for DirectSound driver max frequency.
(cherry picked from commit 1d2f9f0e0e)
This commit is contained in:
parent
fda7c0b461
commit
764d7633ea
1 changed files with 1 additions and 1 deletions
|
|
@ -545,7 +545,7 @@ static bool DSOUND_OpenDevice(SDL_AudioDevice *device)
|
|||
tried_format = true;
|
||||
|
||||
device->spec.format = test_format;
|
||||
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);
|
||||
|
||||
// Update the fragment size as size in bytes
|
||||
SDL_UpdatedAudioDeviceFormat(device);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue