/[svn]/qsampler/trunk/src/qsamplerChannelFxForm.cpp
ViewVC logotype

Diff of /qsampler/trunk/src/qsamplerChannelFxForm.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 3554 by capela, Mon Jul 1 10:53:41 2019 UTC revision 3555 by capela, Tue Aug 13 10:19:32 2019 UTC
# Line 1  Line 1 
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
# Line 113  ChannelFxForm::ChannelFxForm ( Line 113  ChannelFxForm::ChannelFxForm (
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);
# Line 246  void ChannelFxForm::onFxSendSelection(co Line 246  void ChannelFxForm::onFxSendSelection(co
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;

Legend:
Removed from v.3554  
changed lines
  Added in v.3555

  ViewVC Help
Powered by ViewVC