From: Ronald <raalst@gmail.com>
To: ALSA development <alsa-devel@alsa-project.org>
Subject: somebody ever see ALSA applied in robotics ?
Date: Fri, 19 Dec 2008 21:50:39 +0100 [thread overview]
Message-ID: <494C091F.1070405@gmail.com> (raw)
Hi, all,
I'm trying to develop a system which can determine the direction(s)
sound comes from.
In the end, it will be put in an R/c submarine, on a gumstix linux board
(see http://www.subcommittee.com for my hobby)
But for now, I develop in air, with ubuntu.
all I want is to record using both the mic channel and the line in
(where another 2 mics are attached with a small preamp),
and I want to record while emitting a chirp, analyzing echo's.
the concept has been shown to work. see for instance
http://eddiem.com/projects/chirp/chirp.htm
I am assuming that since all this goes via the same sound card, the same
crystal is used, and samples from mic and line in are
essentially synchronized (I only need it to be sync-ish for < 0,1 sec..)
Now I have read a lot of ALSA tutorials and such like, but I'm lost.
a lot is about humans consuming nice harmonics, sharing and mixing,
which is not applicable to my case.
I have the nagging feeling OSS is a better fit for my case, but OSS is
apparently on a 60 day licence now.
And, I am a newbie coder. no surprise there ;-)
So, these are my questions :
- Do I need to combine mic and line-in into one device using the
config file ? do I get a 3 channel device then ? does a plug-in add
latency ?
- can I sync the transmission of a short chirp with the start of the
recording on these 3 channels ? is starting them close after each other
in the program OK, or is there possibly large latency caused *after* I
call the API ? the "real" sync'ing will be the (first) recording of the
chirp once it leaves the speaker, so it isn't critical, but I would like
to know because it might save a few bytes useless samples.
- Does anybody out there have any links, code snippets or general
published info on how to apply ALSA to the robotics field ?
Ps I have read the el-cheapo hack with multiple soundcards, and while a
very good idea, I cannot use it in the boat later on..
thanks for any input you might have.
Regards,
Ronald van Aalst
next reply other threads:[~2008-12-19 20:50 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-12-19 20:50 Ronald [this message]
2008-12-19 21:23 ` somebody ever see ALSA applied in robotics ? Alex Austin
2008-12-20 19:44 ` Sean McNamara
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=494C091F.1070405@gmail.com \
--to=raalst@gmail.com \
--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.