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


Messages In This Thread
Detect the end of an audio stream? - by sciman001 - 05.11.2011, 04:19
Re: Detect the end of an audio stream? - by Calgon - 05.11.2011, 07:51

Forum Jump:


Users browsing this thread: 1 Guest(s)