mirror of
https://github.com/tildearrow/furnace.git
synced 2024-11-16 01:35:07 +00:00
Y8950: let's see
This commit is contained in:
parent
2fa51e482a
commit
1a446c1cdd
1 changed files with 2 additions and 2 deletions
|
@ -739,7 +739,7 @@ int DivPlatformOPL::dispatch(DivCommand c) {
|
||||||
int end=s->offB+s->lengthB-1;
|
int end=s->offB+s->lengthB-1;
|
||||||
immWrite(11,(end>>5)&0xff);
|
immWrite(11,(end>>5)&0xff);
|
||||||
immWrite(12,(end>>13)&0xff);
|
immWrite(12,(end>>13)&0xff);
|
||||||
immWrite(8,1);
|
immWrite(8,2);
|
||||||
immWrite(7,(s->loopStart>=0)?0xb0:0xa0); // start/repeat
|
immWrite(7,(s->loopStart>=0)?0xb0:0xa0); // start/repeat
|
||||||
if (c.value!=DIV_NOTE_NULL) {
|
if (c.value!=DIV_NOTE_NULL) {
|
||||||
chan[c.chan].note=c.value;
|
chan[c.chan].note=c.value;
|
||||||
|
@ -774,7 +774,7 @@ int DivPlatformOPL::dispatch(DivCommand c) {
|
||||||
int end=s->offB+s->lengthB-1;
|
int end=s->offB+s->lengthB-1;
|
||||||
immWrite(11,(end>>2)&0xff);
|
immWrite(11,(end>>2)&0xff);
|
||||||
immWrite(12,(end>>10)&0xff);
|
immWrite(12,(end>>10)&0xff);
|
||||||
immWrite(8,1);
|
immWrite(8,2);
|
||||||
immWrite(7,(s->loopStart>=0)?0xb0:0xa0); // start/repeat
|
immWrite(7,(s->loopStart>=0)?0xb0:0xa0); // start/repeat
|
||||||
int freq=(65536.0*(double)s->rate)/(double)rate;
|
int freq=(65536.0*(double)s->rate)/(double)rate;
|
||||||
immWrite(16,freq&0xff);
|
immWrite(16,freq&0xff);
|
||||||
|
|
Loading…
Reference in a new issue