test code for mixing mic channels under Mac (not enabled)

This commit is contained in:
Volker Fischer 2018-03-04 10:22:10 +00:00
parent 6c8362ea3a
commit 3f2f01b2b1

View file

@ -771,6 +771,23 @@ OSStatus CSound::callbackIO ( AudioDeviceID inDevice,
// right // right
pSound->vecsTmpAudioSndCrdStereo[2 * i + 1] = pSound->vecsTmpAudioSndCrdStereo[2 * i + 1] =
(short) ( pInData[iNumInChan * i + iSelInputRightChannel] * _MAXSHORT ); (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 else