| 564 | } |
| 565 | |
| 566 | static void audio_unpack(struct cdunit *cdu, struct cdtoc *t) |
| 567 | { |
| 568 | // do this even if audio is not compressed, t->handle also could be |
| 569 | // compressed and we want to unpack it in background too |
| 570 | while (cdimage_unpack_active == 1) |
| 571 | sleep_millis(10); |
| 572 | cdimage_unpack_active = 0; |
| 573 | write_comm_pipe_u32(&unpack_pipe, addrdiff(cdu, &cdunits[0]), 0); |
| 574 | write_comm_pipe_u32(&unpack_pipe, addrdiff(t, &cdu->toc[0]), 1); |
| 575 | while (cdimage_unpack_active == 0) |
| 576 | sleep_millis(10); |
| 577 | } |
| 578 | |
| 579 | static void next_cd_audio_buffer_callback(int bufnum, void *params) |
| 580 | { |
no test coverage detected