* help on small program
@ 2005-12-11 16:27 bill
2005-12-11 19:17 ` Lee Revell
0 siblings, 1 reply; 2+ messages in thread
From: bill @ 2005-12-11 16:27 UTC (permalink / raw)
To: alsa-devel
hello,
i am trying to make a small program...
basically i want to measure the ambient noise level with a microphone
and then
set the level of the music playing accordingly
a basic "IF ... THEN" scenario
IF the microphone level is reading 15 over this 3 second sample
period, THEN set the music level output to 44
IF the microphone level is reading 20 over this 3 second sample
period, THEN set the music level output to 50
etc
and want to take the output from my sound program, process it with
this small program, and then feed it into the USB sound output device
bascially i'm not good enough at programming to do this
can anybody out there help me out?? i will pay CASH, beer, food ,
anything .... if you can save me!
thanks
bill stewart
bill@bardo.com.au
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: help on small program
2005-12-11 16:27 help on small program bill
@ 2005-12-11 19:17 ` Lee Revell
0 siblings, 0 replies; 2+ messages in thread
From: Lee Revell @ 2005-12-11 19:17 UTC (permalink / raw)
To: bill; +Cc: alsa-devel
On Sun, 2005-12-11 at 11:27 -0500, bill wrote:
> hello,
> i am trying to make a small program...
>
> basically i want to measure the ambient noise level with a microphone
> and then
> set the level of the music playing accordingly
> a basic "IF ... THEN" scenario
>
> IF the microphone level is reading 15 over this 3 second sample
> period, THEN set the music level output to 44
> IF the microphone level is reading 20 over this 3 second sample
> period, THEN set the music level output to 50
> etc
>
> and want to take the output from my sound program, process it with
> this small program, and then feed it into the USB sound output device
>
> bascially i'm not good enough at programming to do this
>
> can anybody out there help me out?? i will pay CASH, beer, food ,
> anything .... if you can save me!
Just take a look at the "aplay" and "arecord" sources, all you need is
in there. Hint - when you run "aplay" or "arecord" with -vvv, it
displays a real time VU meter of the audio. You just need to combine
the two into a single program, where the output level is set based on
the input level.
It seems like you could do it with 95% copy and paste. Unfortunately I
don't have time to help you in more detail but this should get you
started.
Lee
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2005-12-11 19:17 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-12-11 16:27 help on small program bill
2005-12-11 19:17 ` 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.