From 3f2f01b2b1d740c0c19c4bdbad47c8efca0ae4cd Mon Sep 17 00:00:00 2001 From: Volker Fischer Date: Sun, 4 Mar 2018 10:22:10 +0000 Subject: [PATCH] test code for mixing mic channels under Mac (not enabled) --- mac/sound.cpp | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/mac/sound.cpp b/mac/sound.cpp index 44bac8a5..049ac213 100755 --- a/mac/sound.cpp +++ b/mac/sound.cpp @@ -771,6 +771,23 @@ OSStatus CSound::callbackIO ( AudioDeviceID inDevice, // right pSound->vecsTmpAudioSndCrdStereo[2 * i + 1] = (short) ( pInData[iNumInChan * i + iSelInputRightChannel] * _MAXSHORT ); + + +/* +// TEST mix channel with micro to the stereo output +if ( iNumInChan == 4 ) +{ + // add mic input on input channel 4 to both stereo channels + pSound->vecsTmpAudioSndCrdStereo[2 * i] = + Double2Short ( (double) ( pInData[iNumInChan * i + 3] * _MAXSHORT ) + + (double) pSound->vecsTmpAudioSndCrdStereo[2 * i] ); + pSound->vecsTmpAudioSndCrdStereo[2 * i + 1] = + Double2Short ( (double) ( pInData[iNumInChan * i + 3] * _MAXSHORT ) + + (double) pSound->vecsTmpAudioSndCrdStereo[2 * i + 1] ); +} +*/ + + } } else