Tuesday, March 29, 2011

ALSA tips and tricks

1. If a single channel is selected, the left channel is used. For example using the next function:


int snd_pcm_hw_params_set_channels ( snd_pcm_t *  pcm,


snd_pcm_hw_params_t *  params,


unsigned int  val

)















If val parameter take value 1, meaning 1 channel (mono), the left channeel of the hardware input will be used.































No comments:

Post a Comment