Commit 47ddb04e17d96170e0d5f92ab33d686fb2df42ab

pionere 2022-01-20T12:31:02

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

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/src/audio/coreaudio/SDL_coreaudio.m b/src/audio/coreaudio/SDL_coreaudio.m
index 3b0ef9d..952a74d 100644
--- a/src/audio/coreaudio/SDL_coreaudio.m
+++ b/src/audio/coreaudio/SDL_coreaudio.m
@@ -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);