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

Function cdda_stop

src/blkdev_cdimage.cpp:888–899  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

886}
887
888static void cdda_stop (struct cdunit *cdu)
889{
890 if (cdu->cdda_play != 0) {
891 cdu->cdda_play = -1;
892 while (cdu->cdda_play && cdu->thread_active) {
893 sleep_millis(10);
894 }
895 cdu->cdda_play = 0;
896 }
897 cdu->cdda_paused = 0;
898 cdu->cdda_play_state = 0;
899}
900
901
902static int command_pause (int unitnum, int paused)

Callers 4

command_stopFunction · 0.85
command_rawreadFunction · 0.85
command_readFunction · 0.85
close_deviceFunction · 0.85

Calls 1

sleep_millisFunction · 0.85

Tested by

no test coverage detected