Davide Beatrici (@davidebeatrici) commented about dlls/winepulse.drv/mmdevdrv.c:
};
-static AudioSessionWrapper *AudioSessionWrapper_Create(ACImpl *client) -{
- AudioSessionWrapper *ret;
- ret = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY,
sizeof(AudioSessionWrapper));
- if (!ret)
return NULL;
- ret->IAudioSessionControl2_iface.lpVtbl = &AudioSessionControl2_Vtbl;
- ret->ISimpleAudioVolume_iface.lpVtbl = &SimpleAudioVolume_Vtbl;
- ret->IChannelAudioVolume_iface.lpVtbl = &ChannelAudioVolume_Vtbl;
- ret->ref = !client;
Please note that other drivers are always setting this to `1`.