fix typos

This commit is contained in:
Brenton Bostick authored and Sam Lantinga committed 2025-07-27 08:10:03 -07:00
1 parent 2ed1c35ca6
commit f361034ac3
23 files changed
+34 -34

No files matched your search

+2 -2
View File
@@ -813,7 +813,7 @@ static bool IMA_ADPCM_Init(WaveFile *file, size_t datalength)
if (format->formattag == EXTENSIBLE_CODE) {
/* There's no specification for this, but it's basically the same
* format because the extensible header has wSampePerBlocks too.
* format because the extensible header has wSamplePerBlocks too.
*/
} else {
// The Standards Update says there 'should' be 2 bytes for wSamplesPerBlock.
@@ -1852,7 +1852,7 @@ static bool WaveLoad(SDL_IOStream *src, WaveFile *file, SDL_AudioSpec *spec, Uin
/* Step through all chunks and save information on the fmt, data, and fact
* chunks. Ignore the chunks we don't know as per specification. This
* currently also ignores cue, list, and slnt chunks.
* currently also ignores cue, list, and inst chunks.
*/
while ((Uint64)RIFFend > (Uint64)chunk->position + chunk->length + (chunk->length & 1)) {
// Abort after too many chunks or else corrupt files may waste time.
+3 -3
View File
@@ -652,7 +652,7 @@ static void swizzle_map_compute_alsa_subscan(const struct ALSA_pcm_cfg_ctx *ctx,
}
}
// XXX: this must stay playback/recording symetric.
// XXX: this must stay playback/recording symmetric.
static void swizzle_map_compute(const struct ALSA_pcm_cfg_ctx *ctx, int *swizzle_map, bool *needs_swizzle)
{
*needs_swizzle = false;
@@ -1069,7 +1069,7 @@ static bool ALSA_pcm_cfg_hw(struct ALSA_pcm_cfg_ctx *ctx)
}
// Here, status == CHANS_N_NOT_CONFIGURED
return SDL_SetError("ALSA: Coudn't configure targetting any SDL supported channel number");
return SDL_SetError("ALSA: Couldn't configure targeting any SDL supported channel number");
}
#undef CHANS_N_SCAN_MODE__EQUAL_OR_ABOVE_REQUESTED_CHANS_N
#undef CHANS_N_SCAN_MODE__BELOW_REQUESTED_CHANS_N
@@ -1150,7 +1150,7 @@ static bool ALSA_OpenDevice(SDL_AudioDevice *device)
goto err_close_pcm;
}
// from here, we get only the alsa chmap queries in cfg_ctx to explicitely clean, hwparams is
// from here, we get only the alsa chmap queries in cfg_ctx to explicitly clean, hwparams is
// uninstalled upon pcm closing
// This is useful for debugging
+2 -2
View File
@@ -89,8 +89,8 @@ static void QSA_InitAudioParams(snd_pcm_channel_params_t * cpars)
static bool QSA_WaitDevice(SDL_AudioDevice *device)
{
// Setup timeout for playing one fragment equal to 2 seconds
// If timeout occurred than something wrong with hardware or driver
// For example, Vortex 8820 audio driver stucks on second DAC because
// If timeout occurred then something wrong with hardware or driver
// For example, Vortex 8820 audio driver sticks on second DAC because
// it doesn't exist !
const int result = SDL_IOReady(device->hidden->audio_fd,
device->recording ? SDL_IOR_READ : SDL_IOR_WRITE,