Properly split volume channels for RDPSND_SET_VOLUME.
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@1340 423420c4-83ab-492f-b58f-81f9feb106b5
This commit is contained in:
parent
838f43b3b7
commit
1f47dce7ed
10
rdpsnd.c
10
rdpsnd.c
@ -199,7 +199,7 @@ rdpsnd_process(STREAM s)
|
|||||||
{
|
{
|
||||||
uint8 type;
|
uint8 type;
|
||||||
uint16 datalen;
|
uint16 datalen;
|
||||||
uint32 volume;
|
uint16 vol_left, vol_right;
|
||||||
static uint16 tick, format;
|
static uint16 tick, format;
|
||||||
static uint8 packet_index;
|
static uint8 packet_index;
|
||||||
static BOOL awaiting_data_packet;
|
static BOOL awaiting_data_packet;
|
||||||
@ -271,12 +271,10 @@ rdpsnd_process(STREAM s)
|
|||||||
rdpsnd_process_ping(s);
|
rdpsnd_process_ping(s);
|
||||||
break;
|
break;
|
||||||
case RDPSND_SET_VOLUME:
|
case RDPSND_SET_VOLUME:
|
||||||
in_uint32(s, volume);
|
in_uint16_le(s, vol_left);
|
||||||
|
in_uint16_le(s, vol_right);
|
||||||
if (device_open)
|
if (device_open)
|
||||||
{
|
current_driver->wave_out_volume(vol_left, vol_right);
|
||||||
current_driver->wave_out_volume((volume & 0xffff),
|
|
||||||
(volume & 0xffff0000) >> 16);
|
|
||||||
}
|
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
unimpl("RDPSND packet type %d\n", type);
|
unimpl("RDPSND packet type %d\n", type);
|
||||||
|
Loading…
Reference in New Issue
Block a user