CVS: rdesktop rdpsnd.c,1.28,1.29
Pierre Ossman <[email protected]> Wed, 06 Dec 2006 05:18:38 -0800
| Newsgroups | gmane.network.rdesktop.cvs |
|---|---|
| Message-ID | <[email protected]> |
Update of /cvsroot/rdesktop/rdesktop
In directory sc8-pr-cvs9.sourceforge.net:/tmp/cvs-serv10938
Modified Files:
rdpsnd.c
Log Message:
Properly split volume channels for RDPSND_SET_VOLUME.
Index: rdpsnd.c
===================================================================
RCS file: /cvsroot/rdesktop/rdesktop/rdpsnd.c,v
retrieving revision 1.28
retrieving revision 1.29
diff -C2 -d -r1.28 -r1.29
*** rdpsnd.c 6 Dec 2006 13:11:35 -0000 1.28
--- rdpsnd.c 6 Dec 2006 13:18:36 -0000 1.29
***************
*** 200,204 ****
uint8 type;
uint16 datalen;
! uint32 volume;
static uint16 tick, format;
static uint8 packet_index;
--- 200,204 ----
uint8 type;
uint16 datalen;
! uint16 vol_left, vol_right;
static uint16 tick, format;
static uint8 packet_index;
***************
*** 272,281 ****
break;
case RDPSND_SET_VOLUME:
! in_uint32(s, volume);
if (device_open)
! {
! current_driver->wave_out_volume((volume & 0xffff),
! (volume & 0xffff0000) >> 16);
! }
break;
default:
--- 272,279 ----
break;
case RDPSND_SET_VOLUME:
! in_uint16_le(s, vol_left);
! in_uint16_le(s, vol_right);
if (device_open)
! current_driver->wave_out_volume(vol_left, vol_right);
break;
default:
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV