AudioStream with choppy/no sound.
#1

Hello.

I'm facing some strange issue(s) about audio streams, I have a few ogg & mp3 files hosted on a site which is pretty fast.
See the commands section for details.


Webhost is located in Copenhagen, Denmark.


What is the cause?



Video showing the issue: http://www.mediafire.com/?9qrrqh13e0a24r8
(If you can't be bothered looking at it, don't complain about the video.)

GameMode: http://pastebin.com/Vik1YWtN

Commands:
pawn Код:
CMD:music(playerid, params[])
{
    if(strfind(params, "stop", true) != -1){ StopAudioStreamForPlayer(playerid); return 1; }
    new Float:plpos[3]; GetPlayerPos(playerid,plpos[0],plpos[1],plpos[2]);
    PlayAudioStreamForPlayer(playerid,"http://reizero.biz/media/Jose_Cancela_Amy_Beauchamp_-_An_Entrance.mp3",plpos[0],plpos[1],plpos[2],50,1);
    return 1;
}
// No sound at all, URL too long?/Unsupported mp3 format?

CMD:sound(playerid, params[])
{
    if(strfind(params, "stop", true) != -1){ StopAudioStreamForPlayer(playerid); return 1; }
    new Float:plpos[3]; GetPlayerPos(playerid,plpos[0],plpos[1],plpos[2]);
    PlayAudioStreamForPlayer(playerid,"http://reizero.biz/media/XM_Music.ogg",plpos[0],plpos[1],plpos[2],50,1);
    return 1;
}
// Choppy sound when you move out of a certain range. Does not follow player in vehicle.

CMD:snd(playerid, params[])
{
    if(strfind(params, "stop", true) != -1){ StopAudioStreamForPlayer(playerid); return 1; }
    new Float:plpos[3]; GetPlayerPos(playerid,plpos[0],plpos[1],plpos[2]);
    PlayAudioStreamForPlayer(playerid,"http://reizero.biz/media/Entrance.ogg",plpos[0],plpos[1],plpos[2],50,1);
    return 1;
}
// Choppy sound when you move out of a certain range. Does not follow player in vehicle.

CMD:testsnd(playerid, params[])
{
    if(strfind(params, "stop", true) != -1){ StopAudioStreamForPlayer(playerid); return 1; }
    new Float:plpos[3]; GetPlayerPos(playerid,plpos[0],plpos[1],plpos[2]);
    PlayAudioStreamForPlayer(playerid,"http://reizero.biz/media/Opus_-_Live_Is_Life",plpos[0],plpos[1],plpos[2],50,1);
    return 1;
}
// Choppy sound when you move out of a certain range. Does not follow player in vehicle.
Reply
#2

This seems to be a sa-mp bug, because the connections are sufficient and this is not a scripting issue.
Reply
#3

I dont know why but i dont hear the sounds too using coordinates (tested on localhost which is very very fast). If i delete the coordinates and let the song only to stream it works.
Reply
#4

I never tested without coordinates until now, but without them it all works as supposed to.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)