mirror of
https://github.com/tildearrow/furnace.git
synced 2024-11-01 02:22:39 +00:00
SID2: fix chan osc overflow
This commit is contained in:
parent
f3aa06e0a1
commit
be883ed387
4 changed files with 7 additions and 1 deletions
|
@ -17,6 +17,7 @@ if you find issues (e.g. bugs or annoyances), report them. links below.
|
|||
- issues: https://github.com/tildearrow/furnace/issues
|
||||
- discussion: https://github.com/tildearrow/furnace/discussions
|
||||
- online manual: https://tildearrow.org/furnace/doc/v0.6.7/
|
||||
- Furnace on Discord: https://discord.gg/QhA26dXD23
|
||||
|
||||
# notes
|
||||
|
||||
|
|
|
@ -27,6 +27,7 @@ if you find issues (e.g. bugs or annoyances), report them. links below.
|
|||
- issues: https://github.com/tildearrow/furnace/issues
|
||||
- discussion: https://github.com/tildearrow/furnace/discussions
|
||||
- online manual: https://tildearrow.org/furnace/doc/v0.6.7/
|
||||
- Furnace on Discord: https://discord.gg/QhA26dXD23
|
||||
|
||||
# notes
|
||||
|
||||
|
|
|
@ -17,6 +17,7 @@ if you find issues (e.g. bugs or annoyances), report them. links below.
|
|||
- issues: https://github.com/tildearrow/furnace/issues
|
||||
- discussion: https://github.com/tildearrow/furnace/discussions
|
||||
- online manual: https://tildearrow.org/furnace/doc/v0.6.7/
|
||||
- Furnace on Discord: https://discord.gg/QhA26dXD23
|
||||
|
||||
# notes
|
||||
|
||||
|
|
|
@ -93,7 +93,10 @@ void DivPlatformSID2::acquire(short** buf, size_t len)
|
|||
|
||||
for(int j = 0; j < 3; j++)
|
||||
{
|
||||
oscBuf[j]->data[oscBuf[j]->needle++] = sid2->chan_out[j] / 4;
|
||||
int co=sid2->chan_out[j]>>2;
|
||||
if (co<-32768) co=-32768;
|
||||
if (co>32767) co=32767;
|
||||
oscBuf[j]->data[oscBuf[j]->needle++]=co;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue