mirror of
https://github.com/libretro/RetroArch
synced 2025-03-01 07:13:35 +00:00
(audio_thread_wrapper.c) Fix 'declaration shadows variable(s) in global scope' warnings
This commit is contained in:
parent
b38c5c6cab
commit
246b3b8d87
@ -204,16 +204,16 @@ static const audio_driver_t audio_thread = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
bool rarch_threaded_audio_init(const audio_driver_t **out_driver, void **out_data,
|
bool rarch_threaded_audio_init(const audio_driver_t **out_driver, void **out_data,
|
||||||
const char *device, unsigned out_rate, unsigned latency,
|
const char *device, unsigned audio_out_rate, unsigned latency,
|
||||||
const audio_driver_t *driver)
|
const audio_driver_t *drv)
|
||||||
{
|
{
|
||||||
audio_thread_t *thr = (audio_thread_t*)calloc(1, sizeof(*thr));
|
audio_thread_t *thr = (audio_thread_t*)calloc(1, sizeof(*thr));
|
||||||
if (!thr)
|
if (!thr)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
thr->driver = driver;
|
thr->driver = (const audio_driver_t*)drv;
|
||||||
thr->device = device;
|
thr->device = device;
|
||||||
thr->out_rate = out_rate;
|
thr->out_rate = audio_out_rate;
|
||||||
thr->latency = latency;
|
thr->latency = latency;
|
||||||
|
|
||||||
if (!(thr->cond = scond_new()))
|
if (!(thr->cond = scond_new()))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user