222
222
//get hardware input parameters
223
223
check_error ( snd_pcm_hw_params_malloc ( &fInputParams ) );
224
224
setAudioParams ( fInputDevice, fInputParams );
226
226
//get hardware output parameters
227
227
check_error ( snd_pcm_hw_params_malloc ( &fOutputParams ) )
228
228
setAudioParams ( fOutputDevice, fOutputParams );
230
230
// set the number of physical input and output channels close to what we need
231
231
fCardInputs = fSoftInputs;
232
232
fCardOutputs = fSoftOutputs;
234
234
snd_pcm_hw_params_set_channels_near(fInputDevice, fInputParams, &fCardInputs);
235
235
snd_pcm_hw_params_set_channels_near(fOutputDevice, fOutputParams, &fCardOutputs);
238
238
check_error ( snd_pcm_hw_params ( fInputDevice, fInputParams ) );
239
239
check_error ( snd_pcm_hw_params ( fOutputDevice, fOutputParams ) );