Add ES5506 configs at format.md
Fix code format
This commit is contained in:
parent
62f1ba73eb
commit
5248f30fb4
|
@ -1520,6 +1520,10 @@ chips which aren't on this list don't have any flags.
|
||||||
- 1: 16.67MHz
|
- 1: 16.67MHz
|
||||||
- bit 4: stereo (bool)
|
- bit 4: stereo (bool)
|
||||||
|
|
||||||
|
## 0xb1: Ensoniq ES5506
|
||||||
|
|
||||||
|
- bit 0-4: channels (int)
|
||||||
|
|
||||||
## 0xb5: tildearrow Sound Unit
|
## 0xb5: tildearrow Sound Unit
|
||||||
|
|
||||||
- bit 0: clockSel (int)
|
- bit 0: clockSel (int)
|
||||||
|
|
|
@ -141,8 +141,8 @@ void DivPlatformES5506::acquire(short* bufL, short* bufR, size_t start, size_t l
|
||||||
}
|
}
|
||||||
|
|
||||||
void DivPlatformES5506::e_pin(bool state) {
|
void DivPlatformES5506::e_pin(bool state) {
|
||||||
if (es5506.e_falling_edge()) {
|
if (es5506.e_falling_edge()) { // get channel outputs
|
||||||
if (es5506.voice_update()) { // get channel outputs
|
if (es5506.voice_update()) {
|
||||||
chan[prevChanCycle].lOut=es5506.voice_lout(prevChanCycle);
|
chan[prevChanCycle].lOut=es5506.voice_lout(prevChanCycle);
|
||||||
chan[prevChanCycle].rOut=es5506.voice_rout(prevChanCycle);
|
chan[prevChanCycle].rOut=es5506.voice_rout(prevChanCycle);
|
||||||
chan[prevChanCycle].oscOut=CLAMP((chan[prevChanCycle].lOut+chan[prevChanCycle].rOut)>>5,-32768,32767);
|
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()) { // host interface
|
||||||
if (es5506.e_rising_edge()) {
|
|
||||||
if (cycle) { // wait until delay
|
if (cycle) { // wait until delay
|
||||||
cycle--;
|
cycle--;
|
||||||
} else if (!hostIntf8.empty()) {
|
} else if (!hostIntf8.empty()) {
|
||||||
|
|
Loading…
Reference in a new issue