mirror of
https://github.com/RaySollium99/picodrive.git
synced 2025-09-05 07:17:45 -04:00
some DAC related regression fixes
git-svn-id: file:///home/notaz/opt/svn/PicoDrive@467 be3aeb3a-fb24-0410-a615-afba39da0efa
This commit is contained in:
parent
385a849102
commit
538a6098d4
2 changed files with 10 additions and 9 deletions
|
@ -93,8 +93,9 @@ static void dac_recalculate(void)
|
|||
if (PsndLen_exc_add) len++;
|
||||
dac_info[224] = (pos<<4)|len;
|
||||
}
|
||||
mid = (dac_info[lines-1] & 0xfff0) + ((dac_info[lines-1] & 0xf) << 4);
|
||||
for (i = lines; i < sizeof(dac_info) / sizeof(dac_info[0]); i++)
|
||||
dac_info[i] = 0;
|
||||
dac_info[i] = mid;
|
||||
//for(i=len=0; i < lines; i++) {
|
||||
// printf("%03i : %03i : %i\n", i, dac_info[i]>>4, dac_info[i]&0xf);
|
||||
// len+=dac_info[i]&0xf;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue