From: Eric Peters <epeters@graphics.cs.uni-sb.de>
To: alsa-devel@lists.sourceforge.net
Subject: How to stop a device immediately??
Date: Fri, 04 Aug 2006 14:51:47 +0200 [thread overview]
Message-ID: <44D342E3.908@graphics.cs.uni-sb.de> (raw)
Dear all,
I have a PCM device which is playing some PCM samples. The soundbuffer
is pretty full. And now I want to pause the buffer immediately (as
fast as possible) and sometime later I want to resume at exactly this
sample I paused.
Now I found the two functions snd_pcm_pause and snd_pcm_resume. But
unfortunately these functions aren't supported by all hardware. Do you
know if modern hardware like different sound blaster cards supports
this functions?
Or do you have an idea how to implement such a feature? I also found
the two functions snd_pcm_drain and snd_pcm_drop. But when I use this
functions the sound buffer will be empty if I resume. And with
snd_pcm_drain there will be a delay between I pause the playback and
there are no more samples out of my spaekers.
Thanks in advance
Eric
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
next reply other threads:[~2006-08-04 12:51 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-08-04 12:51 Eric Peters [this message]
2006-08-04 13:03 ` How to stop a device immediately?? Jaroslav Kysela
2006-08-04 14:18 ` Eric Peters
2006-08-04 14:23 ` Jaroslav Kysela
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=44D342E3.908@graphics.cs.uni-sb.de \
--to=epeters@graphics.cs.uni-sb.de \
--cc=alsa-devel@lists.sourceforge.net \
/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.