Alsa-Devel Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: "Michaël Todorovic" <michael.todorovic@free.fr>
To: alsa-devel@lists.sourceforge.net
Subject: How to read the sound card ?
Date: Sun, 30 Jul 2006 16:10:20 +0200	[thread overview]
Message-ID: <44CCBDCC.2010109@free.fr> (raw)

hello,
I want to read the data on the sound card (to do a fft and other 
things). I have first tried the capture stream with snd_pcm_readi and 
everything is working. My problem is that I want to read the sound 
output (pcm or mixer). For example, I want to read the sound that xmms 
or mplayer is writing on the sound card. If I just change 
SND_PCM_STREAM_CAPTURE to SND_PCM_STREAM_PLAYBACK in snd_pcm_open, 
snd_pcm_readi fails.

So my question is : how can I read the sound output with the alsa-lib ?

Thank you

-------------------------------------------------------------------------
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

             reply	other threads:[~2006-07-30 14:10 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-07-30 14:10 Michaël Todorovic [this message]
2006-07-31  7:23 ` How to read the sound card ? Benoit Fouet
2006-07-31 14:05   ` Takashi Iwai

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=44CCBDCC.2010109@free.fr \
    --to=michael.todorovic@free.fr \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox