unpause CD audio */
| 1026 | |
| 1027 | /* unpause CD audio */ |
| 1028 | static 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 */ |
| 1048 | static int cdrom_command_multi (void) |
no test coverage detected