194 |
static uint16 tick, format; |
static uint16 tick, format; |
195 |
static uint8 packet_index; |
static uint8 packet_index; |
196 |
static BOOL awaiting_data_packet; |
static BOOL awaiting_data_packet; |
197 |
|
static unsigned char missing_bytes[4] = { 0, 0, 0, 0 }; |
198 |
|
|
199 |
#ifdef RDPSND_DEBUG |
#ifdef RDPSND_DEBUG |
200 |
printf("RDPSND recv:\n"); |
printf("RDPSND recv:\n"); |
227 |
current_format = format; |
current_format = format; |
228 |
} |
} |
229 |
|
|
230 |
|
/* Insert the 4 missing bytes retrieved from last RDPSND_WRITE */ |
231 |
|
memcpy(s->data, missing_bytes, 4); |
232 |
|
|
233 |
current_driver-> |
current_driver-> |
234 |
wave_out_write(rdpsnd_dsp_process |
wave_out_write(rdpsnd_dsp_process |
235 |
(s, current_driver, &formats[current_format]), tick, |
(s, current_driver, &formats[current_format]), tick, |
248 |
in_uint16_le(s, tick); |
in_uint16_le(s, tick); |
249 |
in_uint16_le(s, format); |
in_uint16_le(s, format); |
250 |
in_uint8(s, packet_index); |
in_uint8(s, packet_index); |
251 |
|
/* Here are our lost bytes, but why? */ |
252 |
|
memcpy(missing_bytes, s->end - 4, 4); |
253 |
awaiting_data_packet = True; |
awaiting_data_packet = True; |
254 |
break; |
break; |
255 |
case RDPSND_CLOSE: |
case RDPSND_CLOSE: |