* ALSA library name / other easy way to capture sound
@ 2006-04-18 23:56 David Lee Lambert
2006-04-19 0:35 ` Lee Revell
0 siblings, 1 reply; 2+ messages in thread
From: David Lee Lambert @ 2006-04-18 23:56 UTC (permalink / raw)
To: alsa-devel
[-- Attachment #1: Type: text/plain, Size: 1294 bytes --]
I'm trying to write a program that captures a short audio segment (~10 s),
stores it in a deque<float>, and does some linear-algebra on it. However,
I've been having a lot of trouble reading audio input. At first I tried
opening "rec" as a subprocess, but it seems to only respond to SIGINT when
standard output is connected to a terminal.
I've also looked into using ALSA. I found the headers on my system, and my
code seems to compile all right using them (I found the tutorial at
http://equalarea.com/paul/alsa-audio.html#basics helpful). However, when I
try to link, I get errors like the following:
g++ -O1 -Wall -g -o test3 test3.cpp audioreader.o -shared -lalsa
/usr/bin/ld: cannot find -lalsa
collect2: ld returned 1 exit status
make: *** [test3] Error 1
Are the ALSA functions normally available in some shared library? What is it
called? Is it a good idea to use it in such a simple application, or would
I get acceptable performance by opening 'arecord' in a subprocess (and can I
kill it after a specified time)?
--
David Lee Lambert ..... Student, Dept. Computer Science,
Wayne State University (lab: 410 State Hall)
<as4109@wayne.edu> or <lamber45@msu.edu> or +1 586-873-8813
Homepage at http://paris.cs.wayne.edu/~as4109/
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: ALSA library name / other easy way to capture sound
2006-04-18 23:56 ALSA library name / other easy way to capture sound David Lee Lambert
@ 2006-04-19 0:35 ` Lee Revell
0 siblings, 0 replies; 2+ messages in thread
From: Lee Revell @ 2006-04-19 0:35 UTC (permalink / raw)
To: David Lee Lambert; +Cc: alsa-devel
On Tue, 2006-04-18 at 19:56 -0400, David Lee Lambert wrote:
> Are the ALSA functions normally available in some shared library?
> What is it
> called?
-lasound
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2006-04-19 0:35 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-04-18 23:56 ALSA library name / other easy way to capture sound David Lee Lambert
2006-04-19 0:35 ` Lee Revell
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.