Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Event driven audio recording
Date: Tue, 11 Nov 2008 15:02:03 +0000 (UTC)
Organization: Lulea University of Technology
Lines: 14
Message-ID: <gfc6pb$im5$1@fred.mathworks.com>
Reply-To: <HIDDEN>
NNTP-Posting-Host: webapp-05-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1226415723 19141 172.30.248.35 (11 Nov 2008 15:02:03 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Tue, 11 Nov 2008 15:02:03 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1595763
Xref: news.mathworks.com comp.soft-sys.matlab:500223


This is what I would like to do:
-------------------------------------
1) Start a process that monitors audio input on two channels of the sound card. 
2) Audio should be sampled into circular buffers of some length of my choice.
3) Once the audio signal on either channel exceeds some predefined threshold, the function should return the contents of the audio buffers.

So, why do I want this:
----------------------------
I'm interested in recording transient audio events. They do not occur very often and not at any predefined times. I would therefore like MATLAB to continuously record sound into two circular buffers. In this way I won't miss any part of the signal as long as the buffer lengths are set up properly.

So, any ideas? To me this sounds like a problem that someone else should have run into.

Thanks in advance,
/Johan