cleanup/sync the main loop of *_OpenDevice functions to pick audio format II.

This commit is contained in:
pionere 2022-01-20 12:31:02 +01:00 committed by Ryan C. Gordon
parent 2eafe4340c
commit 47ddb04e17
1 changed files with 1 additions and 1 deletions

View File

@ -1096,7 +1096,7 @@ COREAUDIO_OpenDevice(_THIS, void *handle, const char *devname)
}
if (!test_format) { /* shouldn't happen, but just in case... */
return SDL_SetError("Unsupported audio format");
return SDL_SetError("%s: Unsupported audio format", "coreaudio");
}
this->spec.format = test_format;
strdesc->mBitsPerChannel = SDL_AUDIO_BITSIZE(test_format);