Merge branch 'master' of github.com:awakecoding/FreeRDP
This commit is contained in:
commit
1f2367794e
@ -199,17 +199,15 @@ void rdpsnd_send_client_audio_formats(rdpsndPlugin* rdpsnd)
|
||||
UINT16 wNumberOfFormats;
|
||||
AUDIO_FORMAT* clientFormat;
|
||||
|
||||
dwVolumeLeft = ((50 * 0xFFFF) / 100); /* 50% */
|
||||
dwVolumeRight = ((50 * 0xFFFF) / 100); /* 50% */
|
||||
dwVolume = (dwVolumeLeft << 16) | dwVolumeRight;
|
||||
|
||||
if (rdpsnd->device)
|
||||
{
|
||||
if (rdpsnd->device->GetVolume)
|
||||
dwVolume = rdpsnd->device->GetVolume(rdpsnd->device);
|
||||
}
|
||||
else
|
||||
{
|
||||
dwVolumeLeft = ((50 * 0xFFFF) / 100); /* 50% */
|
||||
dwVolumeRight = ((50 * 0xFFFF) / 100); /* 50% */
|
||||
dwVolume = (dwVolumeLeft << 16) | dwVolumeRight;
|
||||
}
|
||||
|
||||
wNumberOfFormats = rdpsnd->NumberOfClientFormats;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user