mirror of
https://github.com/libretro/RetroArch
synced 2025-04-09 21:45:45 +00:00
Revert "Windows: Fix multiple XAudio instances"
This commit is contained in:
parent
3c9fe5ebf5
commit
9ef98928d2
@ -57,10 +57,6 @@ static void audio_thread_loop(void *data)
|
|||||||
if (!thr)
|
if (!thr)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
#if defined(_WIN32)
|
|
||||||
CoInitialize(NULL);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
thr->driver_data = thr->driver->init(
|
thr->driver_data = thr->driver->init(
|
||||||
thr->device, thr->out_rate, thr->latency,
|
thr->device, thr->out_rate, thr->latency,
|
||||||
thr->block_frames, thr->new_rate);
|
thr->block_frames, thr->new_rate);
|
||||||
@ -170,10 +166,6 @@ static void audio_thread_free(void *data)
|
|||||||
if (thr->cond)
|
if (thr->cond)
|
||||||
scond_free(thr->cond);
|
scond_free(thr->cond);
|
||||||
free(thr);
|
free(thr);
|
||||||
|
|
||||||
#if defined(_WIN32)
|
|
||||||
CoUninitialize(NULL);
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static bool audio_thread_alive(void *data)
|
static bool audio_thread_alive(void *data)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user