audio: Allow querying of device buffer size.

This commit is contained in:
Ryan C. Gordon committed 2023-09-13 11:03:17 -04:00
1 parent cf95721130
commit 2f43f7bc53
7 files changed
+62 -38

No files matched your search

+1 -1
View File
@@ -197,7 +197,7 @@ int main(int argc, char *argv[])
SDL_Log("Testing audio device: %s\n", devname);
SDL_free(devname);
if (SDL_GetAudioDeviceFormat(devices[i], &spec) != 0) {
if (SDL_GetAudioDeviceFormat(devices[i], &spec, NULL) != 0) {
SDL_LogError(SDL_LOG_CATEGORY_APPLICATION, "SDL_GetAudioDeviceFormat() failed: %s\n", SDL_GetError());
continue;
}