EngineMaster::~EngineMaster() { qDebug() << "in ~EngineMaster()"; delete m_pKeylockEngine; delete m_pCrossfader; delete m_pBalance; delete m_pHeadMix; delete m_pHeadSplitEnabled; delete m_pMasterVolume; delete m_pHeadVolume; delete m_pTalkoverDucking; delete m_pVumeter; delete m_pSideChain; delete m_pMasterDelay; delete m_pHeadDelay; delete m_pXFaderReverse; delete m_pXFaderCalibration; delete m_pXFaderCurve; delete m_pXFaderMode; delete m_pMasterSync; delete m_pMasterSampleRate; delete m_pMasterLatency; delete m_pMasterAudioBufferSize; delete m_pMasterRate; delete m_pAudioLatencyOverloadCount; delete m_pAudioLatencyUsage; delete m_pAudioLatencyOverload; delete m_pMasterEnabled; delete m_pHeadphoneEnabled; SampleUtil::free(m_pHead); SampleUtil::free(m_pMaster); for (int o = EngineChannel::LEFT; o <= EngineChannel::RIGHT; o++) { SampleUtil::free(m_pOutputBusBuffers[o]); } delete m_pWorkerScheduler; QMutableListIterator<ChannelInfo*> channel_it(m_channels); while (channel_it.hasNext()) { ChannelInfo* pChannelInfo = channel_it.next(); channel_it.remove(); SampleUtil::free(pChannelInfo->m_pBuffer); delete pChannelInfo->m_pChannel; delete pChannelInfo->m_pVolumeControl; delete pChannelInfo->m_pMuteControl; delete pChannelInfo; } }
EngineMaster::~EngineMaster() { qDebug() << "in ~EngineMaster()"; delete crossfader; delete m_pBalance; delete head_mix; delete m_pMasterVolume; delete m_pHeadVolume; delete clipping; delete vumeter; delete head_clipping; delete m_pSideChain; delete xFaderReverse; delete xFaderCalibration; delete xFaderCurve; delete xFaderMode; delete m_pMasterSampleRate; delete m_pMasterLatency; delete m_pMasterAudioBufferSize; delete m_pMasterRate; delete m_pMasterUnderflowCount; SampleUtil::free(m_pHead); SampleUtil::free(m_pMaster); QMutableListIterator<ChannelInfo*> channel_it(m_channels); while (channel_it.hasNext()) { ChannelInfo* pChannelInfo = channel_it.next(); channel_it.remove(); SampleUtil::free(pChannelInfo->m_pBuffer); delete pChannelInfo->m_pChannel; delete pChannelInfo->m_pVolumeControl; delete pChannelInfo; } delete m_pWorkerScheduler; }