Audio stream problem.
#6

Quote:
Originally Posted by Threshold
Посмотреть сообщение
With PlayAudioStreamForPlayer, you can stream the audio at a set location (coordinates) or you can simply stream directly to the player. Seeing as you're getting the player's position and then streaming to those coordinates, I can only assume that you're trying to create a direct stream to the player's client. In this case, you don't need to use the coordinate parameters of PlayAudioStreamForPlayer.

Simply change:
PHP код:
PlayAudioStreamForPlayer(iparamsGetPVarFloat(playerid"bposX"), GetPVarFloat(playerid"bposY"), GetPVarFloat(playerid"bposZ"), 30.01); 
To:
PHP код:
PlayAudioStreamForPlayer(iparams); 
If that doesn't change anything, then you need to make sure that you are actually passing all your 'if' statements, and do some debugging to see what is getting called and what isn't.
I want to make it like this:
There's an object and sound is coming smoothly out from it with 30.0 distance and every player around hear it, but when moving away from object, music starts to go away and then stream stops (OnPlayerLeaveDynamicArea). If player again goes in the dynamic sphere, stream starts for him at place of the object. (OnPlayerEnterDynamicArea). I'm passing all 'if' statements and the music should play if we thing logically. But I don't know why it does not.
Reply


Messages In This Thread
Audio stream problem. - by andrikela - 14.09.2017, 17:54
Re: Audio stream problem. - by Zeth - 14.09.2017, 18:07
Re: Audio stream problem. - by BadJih - 14.09.2017, 18:09
Re: Audio stream problem. - by andrikela - 14.09.2017, 18:38
Re: Audio stream problem. - by Threshold - 15.09.2017, 01:42
Re: Audio stream problem. - by andrikela - 15.09.2017, 09:46
Re: Audio stream problem. - by andrikela - 15.09.2017, 09:50
Re: Audio stream problem. - by Kane - 15.09.2017, 09:56
Re: Audio stream problem. - by andrikela - 15.09.2017, 10:11
Re: Audio stream problem. - by Kane - 15.09.2017, 10:16

Forum Jump:


Users browsing this thread: 1 Guest(s)