Skip to content
This repository has been archived by the owner on Oct 16, 2021. It is now read-only.

Fixed 5B Instrument Recording #138

Merged
merged 2 commits into from
Jul 6, 2019
Merged

Conversation

Teuthida255
Copy link
Contributor

No description provided.

@nyanpasu64
Copy link
Owner

i swear i'll look at this at some point

@@ -216,7 +216,8 @@ void CInstrumentRecorder::RecordInstrument(const unsigned Tick, CView *pView) /
}
break;
case SNDCHIP_S5B:
Val = 0x1F & REG(0x06) | (0x10 & REG(0x08 + ID)) << 1
//0x1F accounts for inverted noise period value
Val = 0x1F & (0x1F - REG(0x06)) | (0x10 & REG(0x08 + ID)) << 1
Copy link
Owner

@nyanpasu64 nyanpasu64 Jun 27, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this looks a bit suspicious, maybe 0x1F - (0x1F & REG(0x06)) is more correct, idk I haven't compiled the code yet.

@Teuthida255
Copy link
Contributor Author

"this looks a bit suspicious, maybe 0x1F - (0x1F & REG(0x06)) is more correct"
It probably is; my fix wasn't that well informed.

@nyanpasu64 nyanpasu64 merged commit 12f79ac into nyanpasu64:master Jul 6, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants