How to know if a sound file is empty

Started by AudioFan, June 21, 2016, 03:30:26 PM

Previous topic - Next topic

AudioFan

Hello.
I need to analyze a loaded audio.
I need to get the average audio volume in order to detect whether the audio is empty.
How I can do this?

Administrator

Hello

For calculating the average audio volume you would have to develop, with your own code, a custom DSP to attach to the editor but, for knowing if a sound is empty, you may simply check the nMaxPeakLeft and nMaxPeakRight parameters of the WaveAnalysisDone event: these parameters report the highest detected peak so you may decide that the sound is empty if their values are under a certain threshold.

Kind regards

Severino Delaurenti
MultiMedia Soft