Hi, thank you for entering and trying to help me.
What I need to do is make an application that opens an audio file format(.mp3,.wav,.wma,etc..) that will most likely play frequencies, then if it detects a sound wave(frequency) it will flash the application window.
I made some research and asked my brother for help, he gave me a book about Qt(Qt is a framework for developing GUI applications) and Im getting the hang of it, I find it extremely useful and easy-to-use. I think I will be able to do the GUI part of the application and it will be a somewhat easy application to do.
The problem is that I dont know how to detect a sound wave, I dont know about any function that comes with the STL of C++, so I thought I would post here in case somebody knows a library or function that can detect audio
Something like this:
1 2 3 4 5 6
|
if(SoundLib::there_is_sound())
{
connect(&app, SIGNAL(there_is_sound),
&app, SLOT(there_is_sound());
)
}
|
where SoundLib is the sound library, Sound::there_is_sound() a function in the library. The connect() function is part of the Qt library, it connects a signal with a slot(somewhat like a function).
If anyone knows a library that works different could they please give an example of its use.
Thank you for taking the time to read this.
PS:I only need to know how to detect if there is a sound wave, but I would also like to know how it works. Also if somebody knows how to install a library(make it available in any C++ file, just like the STL) could they please tell me. Thanks