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

Function cdrom_command_unpause

src/akiko.cpp:1028–1045  ·  view source on GitHub ↗

unpause CD audio */

Source from the content-addressed store, hash-verified

1026
1027/* unpause CD audio */
1028static int cdrom_command_unpause (void)
1029{
1030#if AKIKO_DEBUG_IO_CMD
1031 if (log_cd32 > 0)
1032 write_log (_T("CD32: UNPAUSE: %d, %d\n"), cdrom_paused, cdrom_playing);
1033#endif
1034 cdrom_result_buffer[0] = cdrom_command;
1035 if (checkerr ())
1036 return 2;
1037 cdrom_result_buffer[1] = (cdrom_playing ? CDS_PLAYING : 0) | cdrom_door;
1038 if (!cdrom_paused)
1039 return 2;
1040 cdrom_paused = 0;
1041 if (!cdrom_playing)
1042 return 2;
1043 write_comm_pipe_u32 (&requests, 0x0103, 1);
1044 return 2;
1045}
1046
1047/* seek head/play CD audio/read data sectors */
1048static int cdrom_command_multi (void)

Callers 1

cdrom_run_command_runFunction · 0.85

Calls 3

checkerrFunction · 0.85
write_comm_pipe_u32Function · 0.85
write_logFunction · 0.70

Tested by

no test coverage detected