From: Clemens Ladisch <clemens@ladisch.de>
To: brunal <brunal2496@gmail.com>
Cc: alsa-devel@alsa-project.org
Subject: Re: how to convert stereo capture to mono stream (hardware incompatibility)
Date: Thu, 04 Sep 2008 12:58:16 +0200 [thread overview]
Message-ID: <48BFBF48.9060306@ladisch.de> (raw)
In-Reply-To: <AAE526C2-EE39-474B-B9E4-683E62B34D33@gmail.com>
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
prev parent reply other threads:[~2008-09-04 10:58 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-09-01 12:36 how to convert stereo capture to mono stream (hardware incompatibility) brunal
2008-09-04 10:58 ` Clemens Ladisch [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=48BFBF48.9060306@ladisch.de \
--to=clemens@ladisch.de \
--cc=alsa-devel@alsa-project.org \
--cc=brunal2496@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.