Re: how to convert stereo capture to mono stream (hardware incompatibility)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



brunal wrote:
> There is an implementation of alsa in Julius, but I can't make it
> working with my USB sound card, because when alsa tries to set
> channel capture to 1, I get an error from alsa. Here is the code :
>
>   /* set number of channels */
>    if ((err = snd_pcm_hw_params_set_channels(handle, hwparams, 1)) < 0) {
>      jlog("Error: adin_alsa: cannot set PCM channel to %d (%s)\n", 1, snd_strerror(err));
>      return(FALSE);
>    }
> Which always return FALSE.

I'd guess this program uses a wrong device name.  Make sure that the
default device name is "default", which can automatically convert sample
formats not supported by the hardware, and not "hw".


HTH
Clemens
_______________________________________________
Alsa-devel mailing list
Alsa-devel@xxxxxxxxxxxxxxxx
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

[Index of Archives]     [ALSA User]     [Linux Audio Users]     [Kernel Archive]     [Asterisk PBX]     [Photo Sharing]     [Linux Sound]     [Video 4 Linux]     [Gimp]     [Yosemite News]

  Powered by Linux