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 ?
- cappy2112 asked 14 years ago
[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.
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!
Please login first to submit.