0
0

I need to time how long an audio stream will be playing. I expect that it will be anywhere from 6-10 hours, so I don’t want to store the data of the incoming audio. I just need to look for silence for a given period of time, which will indicate the audio stream has stopped.

I already know how to code most of this, but I don’t know how to monitor an audio stream to detect when the audio has stopped.

Can someone give me an example ?

thanks

  • You must to post comments
0
0

you could use get current levels which returns the amplitude of the audio and look for when its zero

  • You must to post comments
0
0

[quote="birty":2j28ol0k]you could use get current levels which returns the amplitude of the audio and look for when its zero[/quote:2j28ol0k]

Thanks- but this is the obvious answer. How to do this, is not so obvious

  • You must to post comments
0
0

Maybe you should take some time and read the fmod doc. After finding
FSOUND_GetCurrentLevels(int channel, float *l, float *r)
you also will think it is obviuos how to do what you want.
regards,
gunnar

  • You must to post comments
0
0

[quote="gunnar67":6ncr1t6l]Maybe you should take some time and read the fmod doc. After finding
FSOUND_GetCurrentLevels(int channel, float *l, float *r)
you also will think it is obviuos how to do what you want.
regards,
gunnar[/quote:6ncr1t6l]

The problem is this- I’m using a wrapper for FMOD, which doesn’t have a 1-1 correlation with the FMOD API’s.
At this point, the author has FSOUND_GetAmplitude() wrapped, and this function will not giv eme what I want.

thanks for the tip!

  • You must to post comments
Showing 4 results
Your Answer

Please first to submit.