parent
4d14a19267
commit
fbb6c4cb4f
4 changed files with 51 additions and 38 deletions
|
|
@ -5952,11 +5952,14 @@ void DivEngine::setOrder(unsigned char order) {
|
|||
isBusy.unlock();
|
||||
}
|
||||
|
||||
void DivEngine::setSysFlags(int system, unsigned int flags) {
|
||||
void DivEngine::setSysFlags(int system, unsigned int flags, bool restart) {
|
||||
isBusy.lock();
|
||||
song.systemFlags[system]=flags;
|
||||
disCont[system].dispatch->setFlags(song.systemFlags[system]);
|
||||
disCont[system].setRates(got.rate);
|
||||
if (restart) {
|
||||
playSub(false);
|
||||
}
|
||||
isBusy.unlock();
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -474,7 +474,7 @@ class DivEngine {
|
|||
void setOrder(unsigned char order);
|
||||
|
||||
// set system flags
|
||||
void setSysFlags(int system, unsigned int flags);
|
||||
void setSysFlags(int system, unsigned int flags, bool restart);
|
||||
|
||||
// set Hz
|
||||
void setSongRate(int hz, bool pal);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue