Add ES5506 configs at format.md

Fix code format
This commit is contained in:
cam900 2022-09-29 22:40:28 +09:00
parent 62f1ba73eb
commit 5248f30fb4
2 changed files with 7 additions and 4 deletions

View File

@ -1520,6 +1520,10 @@ chips which aren't on this list don't have any flags.
- 1: 16.67MHz
- bit 4: stereo (bool)
## 0xb1: Ensoniq ES5506
- bit 0-4: channels (int)
## 0xb5: tildearrow Sound Unit
- bit 0: clockSel (int)

View File

@ -141,8 +141,8 @@ void DivPlatformES5506::acquire(short* bufL, short* bufR, size_t start, size_t l
}
void DivPlatformES5506::e_pin(bool state) {
if (es5506.e_falling_edge()) {
if (es5506.voice_update()) { // get channel outputs
if (es5506.e_falling_edge()) { // get channel outputs
if (es5506.voice_update()) {
chan[prevChanCycle].lOut=es5506.voice_lout(prevChanCycle);
chan[prevChanCycle].rOut=es5506.voice_rout(prevChanCycle);
chan[prevChanCycle].oscOut=CLAMP((chan[prevChanCycle].lOut+chan[prevChanCycle].rOut)>>5,-32768,32767);
@ -155,8 +155,7 @@ void DivPlatformES5506::e_pin(bool state) {
}
}
}
// host interface
if (es5506.e_rising_edge()) {
if (es5506.e_rising_edge()) { // host interface
if (cycle) { // wait until delay
cycle--;
} else if (!hostIntf8.empty()) {