Skip to content

Commit ac3ab02

Browse files
committed
audio: corrected comment about device format minimums.
1 parent 83cc3bc commit ac3ab02

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/audio/SDL_audio.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1767,9 +1767,9 @@ static bool OpenPhysicalAudioDevice(SDL_AudioDevice *device, const SDL_AudioSpec
17671767
SDL_copyp(&spec, inspec ? inspec : &device->default_spec);
17681768
PrepareAudioFormat(device->recording, &spec);
17691769

1770-
/* We allow the device format to change if it's better than the current settings (by various definitions of "better"). This prevents
1771-
something low quality, like an old game using S8/8000Hz audio, from ruining a music thing playing at CD quality that tries to open later.
1772-
(or some VoIP library that opens for mono output ruining your surround-sound game because it got there first).
1770+
/* We impose a simple minimum on device formats. This prevents something low quality, like an old game using S8/8000Hz audio,
1771+
from ruining a music thing playing at CD quality that tries to open later, or some VoIP library that opens for mono output
1772+
ruining your surround-sound game because it got there first.
17731773
These are just requests! The backend may change any of these values during OpenDevice method! */
17741774

17751775
const SDL_AudioFormat minimum_format = device->recording ? DEFAULT_AUDIO_RECORDING_FORMAT : DEFAULT_AUDIO_PLAYBACK_FORMAT;

0 commit comments

Comments
 (0)