All of lore.kernel.org
 help / color / mirror / Atom feed
From: Halim Sahin <halim.sahin@freenet.de>
To: alsa-devel@alsa-project.org
Subject: Re: trouble using dmix with tts systems (accessibility )
Date: Mon, 23 Mar 2009 12:26:42 +0000 (UTC)	[thread overview]
Message-ID: <20090323122638.GA4483@halim> (raw)
In-Reply-To: <s5hy6uw5z8s.wl%tiwai@suse.de>

Hello Takashi
On Mo, Mär 23, 2009 at 11:07:15 +0100, Takashi Iwai wrote:
> At Fri, 20 Mar 2009 09:28:02 +0000 (UTC),
> Halim Sahin wrote:
> > 
> > hello,
> > 
> > I have asked this question to alsa user list but got no useful answer.
> > 
> > I am a blind linux user and need asistive Technology to use my pc.
> > The problem I have experienced with alsa is that it is sometimes too slow to stop
> > previous output before starting a new one.
> > The result of this ends in several speech outputs at a time.
> > The problem only occurs if the dmix plugin is used.
> 
> Could you elaborate how the previous output is stopped, and how the
> next sample is started?  Are they different processes, open/close
> sequences, or snd_pcm_drop() / prepare / re-start, or what?

It seems that the speech-server is using the following functions to handle sound output through alsa:
snd_pcm_drop, snd_pcm_status..., snd_pcm_prepare, snd_pcm_resume ....

The server can be found here:
http://www.freebsoft.org/pub/projects/speechd/speech-dispatcher-0.6.7.tar.gz
The alsa code can be found in file
speechd_0.6.7/src/audio/alsa.c
 
> It'd be best if you could show a small test-case program to reproduce
> the problem...
 
Please have a look to speech-dispatcher , which shows the problem.

I can reproduce the mentioned problem with other apps as well like mplayer.
mplayer -ao alsa *.mp3
During playback simply press right/left for forward/backward.
This step uses dmix if it is enabled!
Then try the same with:
mplayer -ao alsa:device=hw=0.0 *.mp3

Please ask if you have more questions.
I.ll be happy if we can find a working solution for the speech stuff.
Thanks a lot
for your response.
Regards
halim

      reply	other threads:[~2009-03-23 12:26 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-03-20  9:28 trouble using dmix with tts systems (accessibility ) Halim Sahin
2009-03-23 10:07 ` Takashi Iwai
2009-03-23 12:26   ` Halim Sahin [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=20090323122638.GA4483@halim \
    --to=halim.sahin@freenet.de \
    --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.