fmopl.c (089a39486f2c47994c6c0d34ac7abf34baf40d9d) | fmopl.c (67cc32ebfd8c0ee3fcdb26780a8991baf5eb1d45) |
---|---|
1/* 2** 3** File: fmopl.c -- software implementation of FM sound generator 4** 5** Copyright (C) 1999,2000 Tatsuyuki Satoh , MultiArcadeMachineEmurator development 6** 7** Version 0.37a 8** --- 1163 unchanged lines hidden (view full) --- 1172 OPL->mode = 0; /* normal mode */ 1173 OPL_STATUS_RESET(OPL,0x7f); 1174 /* reset with register write */ 1175 OPLWriteReg(OPL,0x01,0); /* wabesel disable */ 1176 OPLWriteReg(OPL,0x02,0); /* Timer1 */ 1177 OPLWriteReg(OPL,0x03,0); /* Timer2 */ 1178 OPLWriteReg(OPL,0x04,0); /* IRQ mask clear */ 1179 for(i = 0xff ; i >= 0x20 ; i-- ) OPLWriteReg(OPL,i,0); | 1/* 2** 3** File: fmopl.c -- software implementation of FM sound generator 4** 5** Copyright (C) 1999,2000 Tatsuyuki Satoh , MultiArcadeMachineEmurator development 6** 7** Version 0.37a 8** --- 1163 unchanged lines hidden (view full) --- 1172 OPL->mode = 0; /* normal mode */ 1173 OPL_STATUS_RESET(OPL,0x7f); 1174 /* reset with register write */ 1175 OPLWriteReg(OPL,0x01,0); /* wabesel disable */ 1176 OPLWriteReg(OPL,0x02,0); /* Timer1 */ 1177 OPLWriteReg(OPL,0x03,0); /* Timer2 */ 1178 OPLWriteReg(OPL,0x04,0); /* IRQ mask clear */ 1179 for(i = 0xff ; i >= 0x20 ; i-- ) OPLWriteReg(OPL,i,0); |
1180 /* reset OPerator paramater */ | 1180 /* reset operator parameter */ |
1181 for( c = 0 ; c < OPL->max_ch ; c++ ) 1182 { 1183 OPL_CH *CH = &OPL->P_CH[c]; 1184 /* OPL->P_CH[c].PAN = OPN_CENTER; */ 1185 for(s = 0 ; s < 2 ; s++ ) 1186 { 1187 /* wave table */ 1188 CH->SLOT[s].wavetable = &SIN_TABLE[0]; --- 206 unchanged lines hidden --- | 1181 for( c = 0 ; c < OPL->max_ch ; c++ ) 1182 { 1183 OPL_CH *CH = &OPL->P_CH[c]; 1184 /* OPL->P_CH[c].PAN = OPN_CENTER; */ 1185 for(s = 0 ; s < 2 ; s++ ) 1186 { 1187 /* wave table */ 1188 CH->SLOT[s].wavetable = &SIN_TABLE[0]; --- 206 unchanged lines hidden --- |