News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

can get amplitude of audio signal ?

Started by orbb, October 28, 2008, 11:55:51 PM

Previous topic - Next topic

orbb

Hi ,can get amplitude of audio signal ? what is function ?

Mark Jones

If the audio data is signed 8/16/32-bit, just take the largest and smallest value (absolute) and add them.

The reciprocal of 20Hz = a period of 50mS, so if you want this amplitude value to represent frequencies down to 20Hz, then a 50mS window of data will need to be sampled and searched for the min and max values.
"To deny our impulses... foolish; to revel in them, chaos." MCJ 2003.08

orbb

I want to make audio indicator as sound coming from other programs, such as winamp

Tedd

If you mean the spectrum analyser then you really need to learn about FFT (or DCT would also work) :wink
If it's the oscilloscope, you can just plot the waveform directly from the audio data.
No snowflake in an avalanche feels responsible.

orbb

I can not believe it got so stupid answers here ...

six_L

really jape.
if you'r not so stupid,why does ask the question here?
answer yourself.
regards

rags

Orbb,
I think that was rather rude and lame of you, calling everyone who tried to help you "stupid". :naughty:
God made Man, but the monkey applied the glue -DEVO

MichaelW

Not to mention that it's a violation of several of the forum rules, makes it impossible to get further help, and potentially hazardous to your health if you do it in person.
eschew obfuscation

orbb

My question was clear and precise, not difficult to understand what you give me answers instead fall into verbal eksibitsionizam?
Is it so difficult for me to specify for example a function in DLL or audio driver which may turn to a range of audio signals?
obviously some scientists here who know nothing are hanging by many stars and rights ...
Thanks for the help ... I will ask the Russians - they are the best and will help me!

rags

Quote
Hi ,can get amplitude of audio signal ? what is function ?

Quote from: orbb on November 01, 2008, 01:42:57 AM
My question was clear and precise, not difficult to understand what you give me answers instead fall into verbal eksibitsionizam?

It wasnt too clear to me in your original post

Quote
Is it so difficult for me to specify for example a function in DLL or audio driver which may turn to a range of audio signals?
obviously some scientists here who know nothing are hanging by many stars and rights ...
I never worked with audio processing, so I couldn't help.

Quote
I want to make audio indicator as sound coming from other programs, such as winamp
Does this mean you want to make an indicator of audio levels coming from your
own program, or do you want to make an indicator to display audio levels from other
programs?

Quote
Thanks for the help ...
Your welcome
Quote
I will ask the Russians - they are the best and will help me!
there are alot of great programmers from ALL over the world. Now who is being the elitist?
God made Man, but the monkey applied the glue -DEVO

Tedd

We answered the question that was asked, not the question you intended to ask.
If you wanted to know of a library that will do this for you, you could have requested that. But you didn't - your question was too vague ("what is function ?")
Probably a problem with English, but you don't help yourself by insulting anyone who offers assistance.
No snowflake in an avalanche feels responsible.