Skip to content

Commit

Permalink
md: fix off-by-one issue when processing sega cd sub-channels
Browse files Browse the repository at this point in the history
  • Loading branch information
LukeUsher committed Mar 7, 2024
1 parent c564dc7 commit d53fdb0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ares/md/mcd/cdd.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ auto MCD::CDD::clock() -> void {
} break;

case Status::Playing: {
readSubcode();
if(session.tracks[io.track].isAudio()) break;
mcd.cdc.decode(io.sector);
advance();
Expand All @@ -60,7 +61,6 @@ auto MCD::CDD::advance() -> void {
io.track = track();
io.sector++;
io.sample = 0;
readSubcode();
return;
}

Expand Down

0 comments on commit d53fdb0

Please sign in to comment.