SA-MP Forums Archive
Audio stream 3D position - noises - 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: Audio stream 3D position - noises (/showthread.php?tid=522174)



Audio stream 3D position - noises - KubiPL - 26.06.2014

Hi, can these noises be fixed when 3D position is set?

Код:
PlayAudioStreamForPlayer(playerid, link,819.6044,-1354.2113,24.3107,75.0, 1);
multicore 0 and 1 - same.

[ame]www.youtube.com/watch?v=juD1_vZKnhU[/ame]


Re: Audio stream 3D position - noises - Andrew_Yuston - 26.06.2014

Try (in callback OnPlayerUpdate):

Код:
    if(IsPlayerInRangeOfPoint(playerid,75.0,819.6044,-1354.2113,24.3107))
    {
            if(!GetPVarInt(playerid,"stream"))
            {
                SetPVarInt(playerid,"stream",1);
                PlayAudioStreamForPlayer(playerid, link,819.6044,-1354.2113,24.3107,75.0, 1);
            }
    }
    else
    {
        if(GetPVarInt(playerid,"stream"))
        {
            DeletePVar(playerid,"stream");
            StopAudioStreamForPlayer(playerid);
        }
    }



Re: Audio stream 3D position - noises - KubiPL - 26.06.2014

Nah, don't think that script in pawn can fix client-side problems.
Btw it disables audio when out of point, I want to fix noises in sa-mp.


Re: Audio stream 3D position - noises - Andrew_Yuston - 26.06.2014

post your script


Re: Audio stream 3D position - noises - KubiPL - 27.06.2014

Why? It's not my script issue..


Re: Audio stream 3D position - noises - Andrew_Yuston - 27.06.2014

In my server there is not any trouble using the script that I posted ..


Respuesta: Audio stream 3D position - noises - adri1 - 27.06.2014

You can use an interior for your map:
pawn Код:
public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
{
if(newinteriorid == MAP_INTERIOR) PlayAudioStreamForPlayer(playerid, link,819.6044,-1354.2113,24.3107,75.0, 1);
if(oldinteriorid == MAP_INTERIOR) StopAudioStreamForPlayer(playerid);
    return 1;
}



Re: Audio stream 3D position - noises - KubiPL - 28.06.2014

Man what's wrong? I said it's not my script issue! Please stop posting useless scripting solves, I already have auto stream disable when out of point, this is just to show the bad noises, interruption of sound in bass plugin which is in SA-MP client. Audio have to be softly fader and fader when distance form player to audio pos grows.


Respuesta: Audio stream 3D position - noises - adri1 - 28.06.2014

There are very much bugs in samp. Fortunately can be repaired as this.


Re: Audio stream 3D position - noises - Rdx - 04.07.2014

I have same problem, but it appears after installing audio plugin. If u have, remove audio plugin and check it again.