From: Colin Guthrie <gmane@colin.guthr.ie>
To: alsa-devel@alsa-project.org
Subject: Re: Issue with Alsa and PulseAudio
Date: Tue, 26 Aug 2008 23:13:03 +0100 [thread overview]
Message-ID: <g91v5f$qe6$1@ger.gmane.org> (raw)
In-Reply-To: <BAY102-W254533A08D3B13E0989D028A660@phx.gbl>
Ash wrote:
> Thanks Colin, Takashi.
>
> The thing is, I've noticed other applications such as aplay or amarok
> call the same function and not exhibit the same behavior. That's why
> I am not sure what I am doing wrong.
Well amarok presumably uses xine... aplay tho' is probably more
interesting. I presume you are passing the same values etc. as e.g. aplay?
>
> Also intersetingly enough, if I do not use the "default"
> ALSA_DEVICE_DEFAULT, and instead use "front" (which I believe is
> direct access to alsa driver, whereas "default" goes through
> pulseaudio), strange things happen. For example, setting a rate or
> channels returns -22 Invalid Argument.
Don't use "front", you should use "default". "front" will only exist on
some sound hardware AFAIK, and in the case that the user has selected
their "default" device to route through pulseaudio, you should respect this.
I'm sure there is probably a technical reason why "front" does not let
you set rate or channels (probably because it represents the front
speakers system of a multi-channel setup), but I'm sure someone more
familiar with the API will be able to enlighten you :)
> I am not sure if I need to change or upgrade alsa. I just want to get
> to the bottom of this with existing pulseaudio/alsa since other
> players seem to work.
Indeed. If aplay is calling this function and works via pulseaudio, then
it stands to reason so should you!
Col
--
Colin Guthrie
gmane(at)colin.guthr.ie
http://colin.guthr.ie/
Day Job:
Tribalogic Limited [http://www.tribalogic.net/]
Open Source:
Mandriva Linux Contributor [http://www.mandriva.com/]
PulseAudio Hacker [http://www.pulseaudio.org/]
Trac Hacker [http://trac.edgewall.org/]
next prev parent reply other threads:[~2008-08-26 22:13 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-08-26 8:30 Issue with Alsa and PulseAudio Ash
2008-08-26 15:21 ` Colin Guthrie
2008-08-26 15:32 ` Takashi Iwai
2008-08-26 15:39 ` Colin Guthrie
2008-08-26 15:58 ` Takashi Iwai
2008-08-26 15:58 ` Takashi Iwai
2008-08-26 17:08 ` Ash
2008-08-26 22:13 ` Colin Guthrie [this message]
2009-02-11 6:49 ` Ludovico Cavedon
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='g91v5f$qe6$1@ger.gmane.org' \
--to=gmane@colin.guthr.ie \
--cc=alsa-devel@alsa-project.org \
/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.