From: Clemens Ladisch <clemens@ladisch.de>
To: Bryan Ischo <bryan@ischo.com>
Cc: alsa-devel@alsa-project.org
Subject: Re: Problem when using silence 'trick'
Date: Mon, 28 Feb 2011 09:34:14 +0100 [thread overview]
Message-ID: <4D6B5E06.3040906@ladisch.de> (raw)
In-Reply-To: <4D6612A0.9000106@ischo.com>
Bryan Ischo wrote:
> [...] when I use the "default" device with my silence
> technique, I have no problem playing multiple audio streams
> simultaneously by opening the "default" device multiple times and
> simultaneously playing streams into the different devices. BUT,
> whenever I cannot deliver audio fast enough to a stream, and the silence
> trick takes over and the stream plays some silence - boom, the device
> goes silent forever.
I tried to reproduce this with mplayer (which uses the same technique),
but couldn't.
Have a look at mplayer's ALSA output driver here:
<http://git.ffmpeg.org/?p=mplayer;a=blob;hb=master;f=libao2/ao_alsa.c>
It regularly calls get_delay() before writing samples, and there uses
snd_pcm_forward() to catch up if an underrun has occurred.
> My apologies for sending this to the wrong mailing list. When I read
> that alsa-devel was for "work on ... an ALSA application", I assumed
> that this was any application; but now I realize that it is probably for
> official ALSA tools, not general third party applications that are not
> associated with the ALSA project.
This list is correct for questions about the ALSA API.
Regards,
Clemens
prev parent reply other threads:[~2011-02-28 8:33 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-02-24 8:11 Problem when using silence 'trick' Bryan Ischo
2011-02-25 20:37 ` Bryan Ischo
2011-02-28 8:34 ` 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=4D6B5E06.3040906@ladisch.de \
--to=clemens@ladisch.de \
--cc=alsa-devel@alsa-project.org \
--cc=bryan@ischo.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.