1 |
// qsamplerChannelFxForm.cpp |
// qsamplerChannelFxForm.cpp |
2 |
// |
// |
3 |
/**************************************************************************** |
/**************************************************************************** |
4 |
Copyright (C) 2010-2013, rncbc aka Rui Nuno Capela. All rights reserved. |
Copyright (C) 2010-2019, rncbc aka Rui Nuno Capela. All rights reserved. |
5 |
Copyright (C) 2008, Christian Schoenebeck |
Copyright (C) 2008, Christian Schoenebeck |
6 |
|
|
7 |
This program is free software; you can redistribute it and/or |
This program is free software; you can redistribute it and/or |
113 |
|
|
114 |
m_pSamplerChannel = pSamplerChannel; |
m_pSamplerChannel = pSamplerChannel; |
115 |
|
|
116 |
m_pAudioDevice = NULL; |
m_pAudioDevice = nullptr; |
117 |
|
|
118 |
FxSendsModel* pModel = |
FxSendsModel* pModel = |
119 |
new FxSendsModel(m_pSamplerChannel->channelID(), m_ui.SendsListView); |
new FxSendsModel(m_pSamplerChannel->channelID(), m_ui.SendsListView); |
246 |
// clear routing model |
// clear routing model |
247 |
ChannelRoutingModel* pRoutingModel = |
ChannelRoutingModel* pRoutingModel = |
248 |
(ChannelRoutingModel*) m_ui.audioRoutingTable->model(); |
(ChannelRoutingModel*) m_ui.audioRoutingTable->model(); |
249 |
pRoutingModel->refresh(NULL, ChannelRoutingMap()); |
pRoutingModel->refresh(nullptr, ChannelRoutingMap()); |
250 |
pRoutingModel->routingMap().clear(); // Reset routing change map. |
pRoutingModel->routingMap().clear(); // Reset routing change map. |
251 |
if (m_pAudioDevice) { |
if (m_pAudioDevice) { |
252 |
delete m_pAudioDevice; |
delete m_pAudioDevice; |
253 |
m_pAudioDevice = NULL; |
m_pAudioDevice = nullptr; |
254 |
} |
} |
255 |
|
|
256 |
if (!pFxSend) return; |
if (!pFxSend) return; |