mirror of
https://github.com/libretro/RetroArch
synced 2025-03-19 16:21:30 +00:00
Merge pull request #4868 from casdevel/wasapi-driver
Fix audio frame rate selection
This commit is contained in:
commit
a05555cd99
@ -496,7 +496,7 @@ static IAudioClient *wasapi_init_client(IMMDevice *device, bool *exclusive,
|
|||||||
}
|
}
|
||||||
|
|
||||||
static void *wasapi_init(const char *dev_id, unsigned rate, unsigned latency,
|
static void *wasapi_init(const char *dev_id, unsigned rate, unsigned latency,
|
||||||
unsigned u, unsigned *new_rate)
|
unsigned u1, unsigned *u2)
|
||||||
{
|
{
|
||||||
HRESULT hr;
|
HRESULT hr;
|
||||||
bool com_initialized = false;
|
bool com_initialized = false;
|
||||||
@ -521,9 +521,8 @@ static void *wasapi_init(const char *dev_id, unsigned rate, unsigned latency,
|
|||||||
if (!w->device)
|
if (!w->device)
|
||||||
goto error;
|
goto error;
|
||||||
|
|
||||||
*new_rate = rate;
|
|
||||||
w->client = wasapi_init_client(w->device,
|
w->client = wasapi_init_client(w->device,
|
||||||
&w->exclusive, &float_format, new_rate, latency);
|
&w->exclusive, &float_format, &rate, latency);
|
||||||
if (!w->client)
|
if (!w->client)
|
||||||
goto error;
|
goto error;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user