226 |
current_format = format; |
current_format = format; |
227 |
} |
} |
228 |
|
|
229 |
current_driver->wave_out_write(s, tick, packet_index); |
current_driver-> |
230 |
|
wave_out_write(rdpsnd_dsp_process |
231 |
|
(s, current_driver, &formats[current_format]), tick, |
232 |
|
packet_index); |
233 |
awaiting_data_packet = False; |
awaiting_data_packet = False; |
234 |
return; |
return; |
235 |
} |
} |
397 |
queue_hi = next_hi; |
queue_hi = next_hi; |
398 |
|
|
399 |
packet->s = *s; |
packet->s = *s; |
|
packet->s.data = |
|
|
rdpsnd_dsp_process(s->data, s->size, current_driver, &formats[current_format]); |
|
|
packet->s.p = packet->s.data + 4; |
|
|
packet->s.end = packet->s.data + s->size; |
|
400 |
packet->tick = tick; |
packet->tick = tick; |
401 |
packet->index = index; |
packet->index = index; |
402 |
|
|
|
#if 0 /* Handled by DSP */ |
|
|
/* we steal the data buffer from s, give it a new one */ |
|
|
s->data = xmalloc(s->size); |
|
|
#endif |
|
|
|
|
403 |
if (!g_dsp_busy) |
if (!g_dsp_busy) |
404 |
current_driver->wave_out_play(); |
current_driver->wave_out_play(); |
405 |
} |
} |