Skip to content

Commit

Permalink
guard more copy calls with if (m_pEngineSideChain)
Browse files Browse the repository at this point in the history
  • Loading branch information
daschuer committed May 2, 2020
1 parent 64abeda commit 4d60739
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/engine/enginemaster.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -564,7 +564,8 @@ void EngineMaster::process(const int iBufferSize) {
m_masterGainOld = master_gain;

// Record/broadcast signal is the same as the master output
if (!m_bExternalRecordBroadcastInputConnected) {
if (m_pEngineSideChain &&
!m_bExternalRecordBroadcastInputConnected) {
SampleUtil::copy(m_pSidechainMix, m_pMaster, m_iBufferSize);
}
} else if (configuredMicMonitorMode == MicMonitorMode::MASTER_AND_BOOTH) {
Expand Down Expand Up @@ -601,7 +602,8 @@ void EngineMaster::process(const int iBufferSize) {
m_masterGainOld = master_gain;

// Record/broadcast signal is the same as the master output
if (!m_bExternalRecordBroadcastInputConnected) {
if (m_pEngineSideChain &&
!m_bExternalRecordBroadcastInputConnected) {
SampleUtil::copy(m_pSidechainMix, m_pMaster, m_iBufferSize);
}
} else if (configuredMicMonitorMode == MicMonitorMode::DIRECT_MONITOR) {
Expand Down

0 comments on commit 4d60739

Please sign in to comment.