on audiostreamend, startaudiostream over and over again?
#1

hey guys,

is it possible to make it like when a song with PlayAudioStreamForPlayer ends that automaticcaly there starts a new song? liek a function called:
OnPlayerAudioStreamEnd(playerid, stream.....)
{
RestartAudioStreamForPlayer(playerid, stream.....);
return 1;
}

is there a function familiar to this? cuz i would LOVE it

greets niels
Reply
#2

There's no way to do this unless you know the length of the song. I've already made a function for this in svAddons, which will be released soon.
Reply
#3

You could make a stock, which would end the first song after X amount of time and start song 2, then end song 2 after X amount of seconds and start 3, etc.
Reply
#4

Quote:
Originally Posted by SuperViper
Посмотреть сообщение
There's no way to do this unless you know the length of the song. I've already made a function for this in svAddons, which will be released soon.
But even so, there's a buffer time.
Reply
#5

hmm yeah, but that will be VERY much timers isnt it? or very much variables..., also my question 2 is is there a StopPlayerSound? to stop the PlayerPlaySound function? cuz its getting really annoying when playing 1 hour GTA an you constant hear that damn song XD
Reply
#6

What song? You mean your stream? Yes there's a callback to stop that. If you're talking about inbuilt sounds, unfortunately no.
Reply
#7

, im talking about PlayerPlaySound(playerid, soundid);

not audiostream... and why there aint a stop for it? that sucks man there should be func for that
Reply
#8

You can stop the music ones with the ID+1, and most of the others with 0 (or -1 I forget).
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)