/[rdesktop]/sourceforge.net/rdesktop/trunk/rdpsnd.c
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /sourceforge.net/rdesktop/trunk/rdpsnd.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1340 by ossman_, Wed Dec 6 13:11:35 2006 UTC revision 1341 by ossman_, Wed Dec 6 13:18:36 2006 UTC
# Line 199  rdpsnd_process(STREAM s) Line 199  rdpsnd_process(STREAM s)
199  {  {
200          uint8 type;          uint8 type;
201          uint16 datalen;          uint16 datalen;
202          uint32 volume;          uint16 vol_left, vol_right;
203          static uint16 tick, format;          static uint16 tick, format;
204          static uint8 packet_index;          static uint8 packet_index;
205          static BOOL awaiting_data_packet;          static BOOL awaiting_data_packet;
# Line 271  rdpsnd_process(STREAM s) Line 271  rdpsnd_process(STREAM s)
271                          rdpsnd_process_ping(s);                          rdpsnd_process_ping(s);
272                          break;                          break;
273                  case RDPSND_SET_VOLUME:                  case RDPSND_SET_VOLUME:
274                          in_uint32(s, volume);                          in_uint16_le(s, vol_left);
275                            in_uint16_le(s, vol_right);
276                          if (device_open)                          if (device_open)
277                          {                                  current_driver->wave_out_volume(vol_left, vol_right);
                                 current_driver->wave_out_volume((volume & 0xffff),  
                                                                 (volume & 0xffff0000) >> 16);  
                         }  
278                          break;                          break;
279                  default:                  default:
280                          unimpl("RDPSND packet type %d\n", type);                          unimpl("RDPSND packet type %d\n", type);

Legend:
Removed from v.1340  
changed lines
  Added in v.1341

  ViewVC Help
Powered by ViewVC 1.1.26