[Plugin] Audio Plugin

You can't play music until audio client is connected. Use Audio_OnPlayerConnect to start the music.
Reply

before everything was ok!
Russian: По русски можеш? Я думаю ты его знаеш
Reply

Quote:
Originally Posted by Lightning[SV]
Посмотреть сообщение
I have had the same bug using streamed audio. After streaming for a while audio_stop doesn't stop the stream. It only happened on linux, I couldn't replicate it on windows.

Lightning
Same situation for me, I think this can be a confirmed bug now.
Reply

It's not playing any files, and when I go ingame and do /play, I type everything perfectly. No sound though.

So I look at my Client log file, and it shows

Quote:

[19:39:50] ------------------------------
[19:39:50] SA-MP Audio Plugin initialized
[19:39:50] ------------------------------
[19:40:08] Connecting to 127.0.0.1:7777...
[19:40:08] Server closed the connection (Name not connected)
[19:40:08] Attempting reconnection (1 of 5)...
[19:40:48] Connecting to 127.0.0.1:7777...
[19:40:48] Server closed the connection (Name not connected)
[19:40:48] Attempting reconnection (2 of 5)...
[19:41:08] Connecting to 127.0.0.1:7777...
[19:41:08] Server closed the connection (Name not connected)
[19:41:08] Attempting reconnection (3 of 5)...
[19:42:47] Connecting to 127.0.0.1:7777...
[19:42:47] Server closed the connection (Name not connected)
[19:42:47] Attempting reconnection (4 of 5)...
[19:43:07] Connecting to 127.0.0.1:7777...
[19:43:07] Server closed the connection (Name not connected)
[19:43:07] Attempting reconnection (5 of 5)...
[19:44:55] Connecting to 127.0.0.1:7777...
[19:44:55] Server closed the connection (Name not connected)

Help?
Reply

I don't know what to say! I spent all day reinstalling my linux to Centos 5, and STILL THE SAME PROBLEM!
Quote:

Please help me! When in the include i remove
pawn Код:
public
    OnPlayerConnect(playerid)
{
    if (!IsPlayerNPC(playerid))
    {
        new
            ip[16],
            name[MAX_PLAYER_NAME];
        GetPlayerIp(playerid, ip, sizeof(ip));
        GetPlayerName(playerid, name, sizeof(name));
        Audio_AddPlayer(playerid, ip, name);
    }
    if (Audio_g_OPC)
    {
        return CallLocalFunction("Audio_OnPlayerConnect", "d", playerid);
    }
    return 1;
}

#if defined _ALS_OnPlayerConnect
    #undef OnPlayerConnect
#else
    #define _ALS_OnPlayerConnect
#endif
#define OnPlayerConnect Audio_OnPlayerConnect

forward
    Audio_OnPlayerConnect(playerid);
Everything works Just FINE! But when i include it, whith every player connect the RAM usage gets +10.
How can i fix it?? I need it very fast :S
My os: debian 32-bit. I tried to compile the plugin on debian, but same prob.
Thanks.

EDIT: Im sure it is because of this function:
pawn Код:
Audio_AddPlayer(playerid, ip, name);
Reply

Audio_OnTransferFile returns error code no.4

Код:
public OnFilterScriptInit()
{
	// .....
	Audio_SetPack("mudzin", true);
	// .....
}
Код:
public Audio_OnClientConnect(playerid)
{
	Audio_TransferPack(playerid);
	return 1;
}

public Audio_OnSetPack(audiopack[])
{
	for(new playerID; playerID < maxPlayers; playerID++)
		if(IsPlayerConnected(playerID))
			Audio_TransferPack(playerID);
	return 1;
}
audio.ini
Код:
[mudzin]
7766 = mudzin.mp3
SA:MP server directory tree:
Код:
audiopacks
.....mudzin
..........mudzin.mp3
Any ideas? File plays ok, when loaded from URL in Audio_PlayStreamed.
Reply

Quote:
Originally Posted by Camacorn
Посмотреть сообщение
How do i make it stop playing a song via cmd?
You can see a exemple in the FS
Reply

ok i made the commands, and it works for me AND some other people, but why doesnt it play for everyone? even when the audio plugin says it connected to server. and the rcon window shows they connected
Reply

awesome 700/5
Reply

Quote:
Originally Posted by Camacorn
Посмотреть сообщение
ok i made the commands, and it works for me AND some other people, but why doesnt it play for everyone? even when the audio plugin says it connected to server. and the rcon window shows they connected
Ye that sometimes happens to me too and to my players.
Reply

Nvm... It works perfect !!
Reply

Someone please create an audio plugin with only play streamed,stop and set volume functions?? This doesn't work for me.
Reply

I need to make it so that when someone enters a property, there is a sound played for everyone in the area.

How would I Do this?
Reply

Quote:
Originally Posted by Mattjones17
Посмотреть сообщение
I need to make it so that when someone enters a property, there is a sound played for everyone in the area.

How would I Do this?
I kinda wanna know how to do this as well.
Reply

Quote:
Originally Posted by Camacorn
Посмотреть сообщение
I kinda wanna know how to do this as well.
Play a sound for everyone, and set3dposition
Reply

The RP server I'm on has this plugin, but if you have the vehicle.txd fix installed (as many cops do on RP servers), GTA:SA crashes as soon as a stream is activated.

Any ideas? :S
Reply

When is the next update??
Reply

still wont let me install the client...
Reply

hm i got a problem. on server start it always say

[10:21:52] *** Audio Plugin: Started TCP server on port 7777
[10:21:52] *** Audio_SetPack: Error opening audio.ini

in my audipacks folder there is an audio.ini with this config:

Quote:

[default_pack]
1 = Schiffshorn.mp3
2 = Telefon.mp3
3 = DingDong.mp3

and theres a folder "default_pack" and theres the 3 audio files in

in ongamemodeinit i have this code:
Quote:

Audio_SetPack("default_pack", true);

i tested it on homeserver, windows 7, 32 bit

need help^^
Reply

audio.ini must be in the root folder(where the samp.exe is located).
Reply


Forum Jump:


Users browsing this thread: 4 Guest(s)