Audio stream 3D position - noises
#1

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]
Reply
#2

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);
        }
    }
Reply
#3

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.
Reply
#4

post your script
Reply
#5

Why? It's not my script issue..
Reply
#6

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

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;
}
Reply
#8

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.
Reply
#9

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

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


Forum Jump:


Users browsing this thread: 1 Guest(s)