MCPcopy Create free account
hub / github.com/BlitterStudio/amiberry / audio_unpack

Function audio_unpack

src/blkdev_cdimage.cpp:566–577  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

564}
565
566static 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
579static void next_cd_audio_buffer_callback(int bufnum, void *params)
580{

Callers 1

cdda_play_func2Function · 0.85

Calls 2

sleep_millisFunction · 0.85
write_comm_pipe_u32Function · 0.85

Tested by

no test coverage detected