Commit 9bd7d848 authored by Davide Beatrici's avatar Davide Beatrici Committed by Alexandre Julliard

winecoreaudio: Use mmdevapi's set_stream_volumes.

parent f008d9a9
......@@ -79,6 +79,8 @@ extern HRESULT stream_release(stream_handle stream, HANDLE timer_thread);
extern WCHAR *get_application_name(void);
extern void set_stream_volumes(struct audio_client *This);
void DECLSPEC_HIDDEN sessions_lock(void)
{
EnterCriticalSection(&g_sessions_lock);
......@@ -198,18 +200,6 @@ static void get_device_guid(EDataFlow flow, const char *dev, GUID *guid)
RegCloseKey(key);
}
static void set_stream_volumes(ACImpl *This)
{
struct set_volumes_params params;
params.stream = This->stream;
params.master_volume = This->session->mute ? 0.0f : This->session->master_vol;
params.volumes = This->vols;
params.session_volumes = This->session->channel_vols;
UNIX_CALL(set_volumes, &params);
}
HRESULT WINAPI AUDDRV_GetEndpointIDs(EDataFlow flow, WCHAR ***ids_out,
GUID **guids_out, UINT *num, UINT *def_index)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment