#1

Is there any way to convert a song or track to the "PlayerPlaySound" function? It would be great, because in the servers there is a lot of lag to call the link of a song.
Reply
#2

I don't think that's possible.
Reply
#3

that's not possible. PlayerPlaySound is called from player's audio bank.
Reply
#4

But you can use https://sampwiki.blast.hk/wiki/PlayAudioStreamForPlayer
Reply
#5

Quote:
Originally Posted by Kaliber
Посмотреть сообщение
Dude, that's where the link of an audio track is technically placed, but still thanks for commenting
Reply
#6

If it's lagging them out they either need a better connection, you need a better host for the mp3, or you need a lower bitrate MP3.

None of this would be fixed by anything in the script itself.
Reply
#7

The Audio Plugin is probably the only real alternative to Audio Streaming. For people who do not have it you can still use Audio Streams.

Theoretically you could offer the Sound Bank Files to download but let's be honest - noone will download that.

Depending on your playerbase it may also make sense to have multiple hosts for the Streams in different Countries, so you can use the closest host for each player. That will reduce the delay before a sound starts to play (unless it's the player's connection).
Reply
#8

Actually, if it's the gap before it starts streaming, I now find I'm noticing that in a script I have currently. Takes about 4-5 seconds + for it to start up.
Reply
#9

Quote:
Originally Posted by Sew_Sumi
Посмотреть сообщение
Actually, if it's the gap before it starts streaming, I now find I'm noticing that in a script I have currently. Takes about 4-5 seconds + for it to start up.
There are also differences in the delay between formats. Try using 64 kbps M4A/AAC vs. 64 kbps MP3. The M4A will start playing earlier than an MP3 (which needs a fair amount of data before it can be played).

You can notice this if you play an AAC audio stream on bad connections, the first second or so will sound like very low quality, and once the buffer is filled it will improve to the original quality - which means you can use higher quality M4A codecs with the same delay as a LowQ MP3.

Also, do not include ID3 Tags and no cover picture in MP3 files. They are in the header which effectively highers the delay before any actual audio data is transmitted.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)