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; |
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); |