Detect the end of an audio stream?
#1

Hi. I was just wonderingm is it possible to detect the end of a player streamed audio? I do NOT want to use the "time" method... if you know what i mean... By that, I mean, I do not want to check if however long has passed... like...
Код:
if time has passed
{
     variable = 1
}
I want something like this:
Код:
public OnAudioStreamStop(playerid)
{
     if(streaming[playerid] == 1)
     {
          streaming[playerid] = 0;
     }
}
Or something like that. I do have that streaming variable in my script so that players cant play 2 or more songs at the same time. :P Anyway, can anyont let me know about this please? Thanks!
Reply
#2

No, there's no callbacks or any way of checking whether the stream has ended yet. You can always suggest it as a new feature for 0.3d's final release though.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)