27.05.2012, 22:07
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:
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.