test code for mixing mic channels under Mac (not enabled)
This commit is contained in:
parent
6c8362ea3a
commit
3f2f01b2b1
1 changed files with 17 additions and 0 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue