Mercurial > repos > blastem
comparison cdd_mcu.c @ 2117:03304d350339
Set force-mute when CD drive is in the pause state
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Sun, 06 Mar 2022 22:30:47 -0800 |
parents | cd057d6fe030 |
children | bb478feccca2 |
comparison
equal
deleted
inserted
replaced
2116:cd057d6fe030 | 2117:03304d350339 |
---|---|
149 context->head_pba = LEADIN_SECTORS; | 149 context->head_pba = LEADIN_SECTORS; |
150 } | 150 } |
151 } | 151 } |
152 } | 152 } |
153 if (context->head_pba >= LEADIN_SECTORS) { | 153 if (context->head_pba >= LEADIN_SECTORS) { |
154 uint8_t track = context->media->seek(context->media, context->head_pba - LEADIN_SECTORS); | 154 context->media->seek(context->media, context->head_pba - LEADIN_SECTORS); |
155 if (!context->seeking && context->media->tracks[track].type == TRACK_AUDIO) { | |
156 gate_array[GAO_CDD_CTRL] &= ~BIT_MUTE; | |
157 } | |
158 } | 155 } |
159 break; | 156 break; |
160 case DS_TOC_READ: | 157 case DS_TOC_READ: |
161 handle_seek(context); | 158 handle_seek(context); |
162 if (!context->seeking) { | 159 if (!context->seeking) { |