maybe fix another audio export crash
This commit is contained in:
parent
dfb4f211c1
commit
13d08b3cb6
|
@ -173,7 +173,7 @@ int DivEngine::dispatchCmd(DivCommand c) {
|
||||||
cmdStream.push_back(c);
|
cmdStream.push_back(c);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!skipping && output->midiOut!=NULL) {
|
if (output) if (!skipping && output->midiOut!=NULL) {
|
||||||
if (output->midiOut->isDeviceOpen()) {
|
if (output->midiOut->isDeviceOpen()) {
|
||||||
int scaledVol=(chan[c.chan].volume*127)/MAX(1,chan[c.chan].volMax);
|
int scaledVol=(chan[c.chan].volume*127)/MAX(1,chan[c.chan].volMax);
|
||||||
if (scaledVol<0) scaledVol=0;
|
if (scaledVol<0) scaledVol=0;
|
||||||
|
|
Loading…
Reference in a new issue