SA-MP Forums Archive
[Plugin] Audio Plugin - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Plugin Development (https://sampforum.blast.hk/forumdisplay.php?fid=18)
+--- Thread: [Plugin] Audio Plugin (/showthread.php?tid=82162)

Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34


Re: [REL] Audio Plugin v0.4 - Sergei - 05.10.2010

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


Re: [REL] Audio Plugin v0.4 - Xotab - 05.10.2010

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


Re: [REL] Audio Plugin v0.4 - Chaprnks - 08.10.2010

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.


Re: [REL] Audio Plugin v0.4 - Memoryz - 09.10.2010

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?


Re: [REL] Audio Plugin v0.4 - wups - 14.10.2010

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);



Re: [REL] Audio Plugin v0.4 - ziomal432 - 16.10.2010

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.


Re: [REL] Audio Plugin v0.4 - Brian_Furious - 23.10.2010

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


Re: [REL] Audio Plugin v0.4 - Camacorn - 24.10.2010

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


Re: [REL] Audio Plugin v0.4 - iJumbo - 24.10.2010

awesome 700/5


Re: [REL] Audio Plugin v0.4 - Lilcuete - 24.10.2010

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.


Re: [REL] Audio Plugin v0.4 - Rainbow_Six - 25.10.2010

Nvm... It works perfect !!


Re: [REL] Audio Plugin v0.4 - wups - 26.10.2010

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


Re: [REL] Audio Plugin v0.4 - Mattjones17 - 26.10.2010

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?


Re: [REL] Audio Plugin v0.4 - Camacorn - 26.10.2010

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.


Re: [REL] Audio Plugin v0.4 - wups - 26.10.2010

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


Re: [REL] Audio Plugin v0.4 - officermatt22 - 28.10.2010

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


Re: [REL] Audio Plugin v0.4 - wups - 29.10.2010

When is the next update??


Re: [REL] Audio Plugin v0.4 - WillyP - 29.10.2010

still wont let me install the client...


AW: [REL] Audio Plugin v0.4 - [Nino] - 30.10.2010

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^^


Re: [REL] Audio Plugin v0.4 - wups - 30.10.2010

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