mirror of
https://github.com/RaySollium99/picodrive.git
synced 2025-09-05 07:17:45 -04:00
don't crash on bad timing
This commit is contained in:
parent
70b8542adb
commit
9b5713af95
1 changed files with 3 additions and 0 deletions
|
@ -181,6 +181,9 @@ PICO_INTERNAL void PsndDoDAC(int line_to)
|
|||
int dout = ym2612.dacout;
|
||||
int line_from = PsndDacLine;
|
||||
|
||||
if (line_to >= 312)
|
||||
line_to = 311;
|
||||
|
||||
PsndDacLine = line_to + 1;
|
||||
|
||||
pos =dac_info[line_from]>>4;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue