CEmuopl::~CEmuopl() { OPLDestroy(opl[0]); OPLDestroy(opl[1]); delete [] mixbuf0; delete [] mixbuf1; }
/** * Deletes the loaded music content. */ AdlibMusic::~AdlibMusic() { if (opl[0]) { stop(); OPLDestroy(opl[0]); opl[0] = 0; } if (opl[1]) { OPLDestroy(opl[1]); opl[1] = 0; } delete[] _data; }
void y8950Destroy(Y8950* y8950) { mixerUnregisterChannel(y8950->mixer, y8950->handle); boardTimerDestroy(y8950->timer1); boardTimerDestroy(y8950->timer2); OPLDestroy(y8950->opl); if (y8950->ykIo != NULL) { ykIoDestroy(y8950->ykIo); } free(y8950); }
void AdLibMidiDriver::close() { _mixer->stopHandle(_mixerSoundHandle); OPLDestroy(_opl); }
AdLibMusic::~AdLibMusic() { OPLDestroy(_opl); _mixer->stopHandle(_soundHandle); }