SDL_GetAudioPlaybackDevices() and SDL_GetAudioRecordingDevices() follow the SDL_GetStringRule
This commit is contained in:
1 parent
bb96320cc4
commit
8ca6caeda5
9 files changed
+23
-30
No files matched your search
@@ -366,7 +366,7 @@ static int audio_enumerateAndNameAudioDevices(void *arg)
|
||||
int t;
|
||||
int i, n;
|
||||
const char *name;
|
||||
SDL_AudioDeviceID *devices = NULL;
|
||||
const SDL_AudioDeviceID *devices = NULL;
|
||||
|
||||
/* Iterate over types: t=0 playback device, t=1 recording device */
|
||||
for (t = 0; t < 2; t++) {
|
||||
@@ -388,8 +388,6 @@ static int audio_enumerateAndNameAudioDevices(void *arg)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
SDL_free(devices);
|
||||
}
|
||||
|
||||
return TEST_COMPLETED;
|
||||
|
||||
Reference in new issue
Block a user