MultiMedia Soft forum

MultiMedia Soft products => Audio editing components => Topic started by: AudioFan on June 21, 2016, 03:30:26 PM

Title: How to know if a sound file is empty
Post by: AudioFan on June 21, 2016, 03:30:26 PM
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?
Title: Re: How to know if a sound file is empty
Post by: Administrator on June 21, 2016, 03:31:59 PM
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