alsa-devel.alsa-project.org archive mirror
 help / color / mirror / Atom feed
From: Raymond Yau <superquad.vortex2@gmail.com>
To: ALSA Development Mailing List <alsa-devel@alsa-project.org>
Subject: Re: ALSA/pulseaudio problem workaround
Date: Sat, 19 Mar 2011 11:18:29 +0800	[thread overview]
Message-ID: <AANLkTikSL7zqSY0RN3-M2wGzAcMR-hGjKOef5tNATC7H@mail.gmail.com> (raw)
In-Reply-To: <AANLkTi=MXXxkcbA2h=jkJzm4BWm7_4vEwuNoaNDGE-CN@mail.gmail.com>

2011/3/15 Craig Bourne <craigbourne@gmail.com>

>
>
> [cbourne@speedy ~]$ audacity
> Cannot connect to server socket err = No such file or directory
> Cannot connect to server socket
> jack server is not running or cannot be started
> Expression 'stream->capture.pcm' failed in
> 'src/hostapi/alsa/pa_linux_alsa.c', line: 3653
>
[ It should be noted that, despite the error response, audacity produce
> audible output only if jack is NOT running-- else, if jack is running,
> everything looks normal but there is no sound ]
>
>
 [ Here sound is produced by audacity 1) without jack running, 2)  with
jackrunning using the startup/shutdown scripts 3) with jack running but
without

> the scripts.  Though I have no metrics to share with you to support this,
> it
> is my repeated observation that procedures 1) and 3) produce far more noise
> than does procedure 2) in this testing scenario. ]
>

it is because audacity use portaudio and there are three hostapi ( backend )
: alsa ,oss and jack on linux

"Host :ALSA " or "Host :JACK" in audacity preference - "Devices" -
"Interface"

When portauio initialise , it will probe all the devices of available
hostapi for the user to select in "Preference"

so it will try to connect to JACK server to find out whether it support
duplex or not

For alsa  builddevicelist()  add those "hw" devices of the sound cards , it
also add some"plugin" which is not in ignored list and finally two devices
"dmix" and "default"

seem the message 'stream->capture.pcm' is related to "dmix" since "dsnoop"
is in the ignored list

if you are still using "pcm.pulse" as "default" and does not disable
autospwan of PA server ,PA server may autospawn to compete with JACK server
for the sound card

I have dobut about using "Jack" and "Pulse" at the same time since "Jack"
application usually aim at "low latency" while "Pulseaudio" is aim at
reducing the number of wakeup for "power saving"

  parent reply	other threads:[~2011-03-19  3:18 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-03-13 21:05 ALSA/pulseaudio problem workaround Craig Bourne
2011-03-14 14:52 ` Colin Guthrie
2011-03-14 18:00   ` Craig Bourne
2011-03-14 22:54     ` Colin Guthrie
2011-03-19  3:18     ` Raymond Yau [this message]
2011-03-14 21:31   ` Craig Bourne
2011-03-14 23:18     ` Colin Guthrie
2011-03-15  5:19       ` Raymond Yau
2011-03-16 17:57       ` Craig Bourne
2011-03-17  9:58         ` Colin Guthrie
2011-03-17 13:40 ` Raymond Yau

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=AANLkTikSL7zqSY0RN3-M2wGzAcMR-hGjKOef5tNATC7H@mail.gmail.com \
    --to=superquad.vortex2@gmail.com \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).