mirror of https://github.com/encounter/SDL.git
differentiate between capture / playback audio thread names
This commit is contained in:
parent
763e138903
commit
c4d54504fa
|
@ -1371,7 +1371,7 @@ open_audio_device(const char *devname, int iscapture,
|
|||
const size_t stacksize = is_internal_thread ? 64 * 1024 : 0;
|
||||
char threadname[64];
|
||||
|
||||
SDL_snprintf(threadname, sizeof (threadname), "SDLAudioDev%d", (int) device->id);
|
||||
SDL_snprintf(threadname, sizeof (threadname), "SDLAudio%c%d", (iscapture) ? 'C' : 'P', (int) device->id);
|
||||
device->thread = SDL_CreateThreadInternal(iscapture ? SDL_CaptureAudio : SDL_RunAudio, threadname, stacksize, device);
|
||||
|
||||
if (device->thread == NULL) {
|
||||
|
|
Loading…
Reference in New Issue