add PAL flag to dispatch
now platforms run at their correct clock speed when in PAL mode also fix clipping in Genesis
This commit is contained in:
parent
fe5f8afa05
commit
6a02754996
19 changed files with 69 additions and 36 deletions
|
|
@ -264,9 +264,13 @@ bool DivPlatformPCE::keyOffAffectsArp(int ch) {
|
|||
}
|
||||
|
||||
|
||||
int DivPlatformPCE::init(DivEngine* p, int channels, int sugRate) {
|
||||
int DivPlatformPCE::init(DivEngine* p, int channels, int sugRate, bool pal) {
|
||||
parent=p;
|
||||
rate=1789773;
|
||||
if (pal) { // technically there is no PAL PC Engine but oh well...
|
||||
rate=1773448;
|
||||
} else {
|
||||
rate=1789773;
|
||||
}
|
||||
pce=new PCE_PSG(&tempL,&tempR,PCE_PSG::REVISION_HUC6280);
|
||||
lastPan=0xff;
|
||||
tempL=0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue