Skip to content

Commit

Permalink
Custom chipset complete rewrite
Browse files Browse the repository at this point in the history
  • Loading branch information
tonioni committed Jan 4, 2025
1 parent 2c4856e commit eee1bc9
Show file tree
Hide file tree
Showing 53 changed files with 263,935 additions and 42,395 deletions.
14 changes: 8 additions & 6 deletions audio.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2593,15 +2593,17 @@ void AUDxDAT(int nr, uae_u16 v)
AUDxDAT(nr, v, 0xffffffff);
}

uaecptr audio_getpt(int nr, bool reset)
uaecptr *audio_getpt(int nr)
{
struct audio_channel_data *cdp = audio_channel + nr;
uaecptr p = cdp->pt;
cdp->pt += 2;
if (reset)
cdp->pt = cdp->lc;
cdp->ptx_tofetch = false;
return p & ~1;
cdp->pt &= ~1;
return &cdp->pt;
}
uaecptr audio_getloadpt(int nr)
{
struct audio_channel_data *cdp = audio_channel + nr;
return cdp->lc;
}

void AUDxLCH(int nr, uae_u16 v)
Expand Down
Loading

0 comments on commit eee1bc9

Please sign in to comment.