finally fix invalid module disrupting program
This commit is contained in:
parent
f327e036ce
commit
498fa99c5a
3 changed files with 13 additions and 5 deletions
|
|
@ -1413,6 +1413,12 @@ void DivEngine::reset() {
|
|||
dispatch->reset();
|
||||
}
|
||||
|
||||
void DivEngine::syncReset() {
|
||||
isBusy.lock();
|
||||
reset();
|
||||
isBusy.unlock();
|
||||
}
|
||||
|
||||
String DivEngine::getConfigPath() {
|
||||
return configPath;
|
||||
}
|
||||
|
|
@ -1696,6 +1702,7 @@ void DivEngine::initDispatch() {
|
|||
break;
|
||||
}
|
||||
dispatch->init(this,getChannelCount(song.system),got.rate,(!song.pal) || (song.customTempo!=0 && song.hz<53));
|
||||
chans=getChannelCount(song.system);
|
||||
|
||||
blip_set_rates(bb[0],dispatch->rate,got.rate);
|
||||
blip_set_rates(bb[1],dispatch->rate,got.rate);
|
||||
|
|
|
|||
|
|
@ -108,6 +108,7 @@ class DivEngine {
|
|||
bool perSystemEffect(int ch, unsigned char effect, unsigned char effectVal);
|
||||
bool perSystemPostEffect(int ch, unsigned char effect, unsigned char effectVal);
|
||||
void renderSamples();
|
||||
void reset();
|
||||
|
||||
public:
|
||||
DivSong song;
|
||||
|
|
@ -146,7 +147,7 @@ class DivEngine {
|
|||
void stop();
|
||||
|
||||
// reset playback state
|
||||
void reset();
|
||||
void syncReset();
|
||||
|
||||
// get config path
|
||||
String getConfigPath();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue