mirror of
https://github.com/libretro/RetroArch.git
synced 2025-04-02 10:51:52 -04:00
Fix audio frame rate selection
This commit is contained in:
parent
2009d359c9
commit
4cba63cdd0
1 changed files with 2 additions and 3 deletions
|
@ -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,
|
||||
unsigned u, unsigned *new_rate)
|
||||
unsigned u1, unsigned *u2)
|
||||
{
|
||||
HRESULT hr;
|
||||
bool com_initialized = false;
|
||||
|
@ -521,9 +521,8 @@ static void *wasapi_init(const char *dev_id, unsigned rate, unsigned latency,
|
|||
if (!w->device)
|
||||
goto error;
|
||||
|
||||
*new_rate = rate;
|
||||
w->client = wasapi_init_client(w->device,
|
||||
&w->exclusive, &float_format, new_rate, latency);
|
||||
&w->exclusive, &float_format, &rate, latency);
|
||||
if (!w->client)
|
||||
goto error;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue