maybe fix another audio export crash

This commit is contained in:
tildearrow 2022-04-01 16:31:06 -05:00
parent dfb4f211c1
commit 13d08b3cb6
1 changed files with 1 additions and 1 deletions

View File

@ -173,7 +173,7 @@ int DivEngine::dispatchCmd(DivCommand c) {
cmdStream.push_back(c);
}
if (!skipping && output->midiOut!=NULL) {
if (output) if (!skipping && output->midiOut!=NULL) {
if (output->midiOut->isDeviceOpen()) {
int scaledVol=(chan[c.chan].volume*127)/MAX(1,chan[c.chan].volMax);
if (scaledVol<0) scaledVol=0;