diff options
Diffstat (limited to 'src/devices/sound/dmadac.cpp')
-rw-r--r-- | src/devices/sound/dmadac.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/devices/sound/dmadac.cpp b/src/devices/sound/dmadac.cpp index 497861caae8..8493747b1b6 100644 --- a/src/devices/sound/dmadac.cpp +++ b/src/devices/sound/dmadac.cpp @@ -130,7 +130,8 @@ void dmadac_enable(dmadac_sound_device **devlist, uint8_t num_channels, uint8_t /* flush out as much data as we can */ for (i = 0; i < num_channels; i++) { - devlist[i]->enable(enable); + if (devlist[i]) + devlist[i]->enable(enable); } } |