Commit ea5d0296 authored by sletz's avatar sletz
Browse files

Fix in JackAlsaAdapter::Open.

git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@3260 0c269be4-1314-0410-8aa9-9f06e86f4224
parent b3abd3f4
......@@ -211,13 +211,18 @@ namespace Jack
//get hardware input parameters
check_error ( snd_pcm_hw_params_malloc ( &fInputParams ) );
setAudioParams ( fInputDevice, fInputParams );
snd_pcm_hw_params_get_channels ( fInputParams, &fCardInputs );
//get hardware output parameters
check_error ( snd_pcm_hw_params_malloc ( &fOutputParams ) )
setAudioParams ( fOutputDevice, fOutputParams );
snd_pcm_hw_params_get_channels ( fOutputParams, &fCardOutputs );
// set the number of physical input and output channels close to what we need
fCardInputs = fSoftInputs;
fCardOutputs = fSoftOutputs;
snd_pcm_hw_params_set_channels_near(fInputDevice, fInputParams, &fCardInputs);
snd_pcm_hw_params_set_channels_near(fOutputDevice, fOutputParams, &fCardOutputs);
//set input/output param
check_error ( snd_pcm_hw_params ( fInputDevice, fInputParams ) );
check_error ( snd_pcm_hw_params ( fOutputDevice, fOutputParams ) );
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment