SA-MP Forums Archive
AudioStream with choppy/no sound. - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP (https://sampforum.blast.hk/forumdisplay.php?fid=3)
+--- Forum: Bug Reports (https://sampforum.blast.hk/forumdisplay.php?fid=20)
+--- Thread: AudioStream with choppy/no sound. (/showthread.php?tid=346287)



AudioStream with choppy/no sound. - Patrik356b - 27.05.2012

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.



Re: AudioStream with choppy/no sound. - Patrik356b - 28.05.2012

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


Re: AudioStream with choppy/no sound. - TheArcher - 31.05.2012

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.


Re: AudioStream with choppy/no sound. - Patrik356b - 31.05.2012

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