|
|
#1 |
|
Huge Clucker
![]() ![]() ![]() Join Date: May 2006
Posts: 434
Reputation: 341
|
Audio Plugin v0.5 R2
This plugin creates a TCP server that can communicate with external clients to transfer and play back audio files, stream audio files from the Internet, and control in-game radio stations. It has several features, including:
Changelog v0.5 R2:
Refer to changes.txt in the server package for the full changelog. Natives
Callbacks
Download Client Plugin (Windows) (Mirror) Server Plugin (Windows and Linux) (Mirror) Client Plugin Source Code (Windows) (Mirror) Server Plugin Source Code (Cross-Compatible) (Mirror) The Windows version of the server plugin requires the Microsoft .NET Framework 4.0 or higher. Last edited by Incognito; 21/10/2012 at 10:41 PM. |
|
|
|
|
|
#2 |
|
Huge Clucker
![]() ![]() ![]() Join Date: May 2006
Posts: 434
Reputation: 341
|
Tutorial
Client: Installation and use of the client plugin is simple. Just run the installer and extract the files to the GTA: San Andreas directory. The ASI plugin detects when SA-MP is loaded and obtains the current player name, server address, and server port automatically. It will then attempt to connect to the TCP server (if there is one) some time after the game has started. By default, there will be a total of ten retry attempts with a delay of ten seconds each. To adjust these numbers, along with a few other settings, audio.ini will need to be edited. To locate this file, go to Start, click Run, and type in the following: Code:
%APPDATA%\SA-MP Audio Plugin Server: Create a directory called "plugins" inside of the server directory if one does not already exist. Place the plugin file (audio.dll or audio.so) inside of this directory. Add the following line to server.cfg so that the plugin will load the next time the server starts: Windows: Code:
plugins audio.dll Code:
plugins audio.so pawn Code:
Recompile the scripts with any desired natives and callbacks provided by the include file. Start the server. The server log should indicate that the TCP server was created successfully on the same port that the SA-MP sever is using. Ensure that both the audiopacks folder and the audio.ini file are in the root directory of the server. Open audio.ini and add a section for the audio pack name. For demonstration purposes, this will be called "default_pack": Code:
[default_pack] Code:
[default_pack] 1 = file.wav pawn Code:
Remote files that don't need to be in the audiopacks directory can also be mapped. They must start with "http://". Here is an example: Code:
[default_pack] 1 = file.wav 2 = http://www.website.com/file.wav pawn Code:
Alternatively, it is possible to completely ignore audio.ini and stream all of the files with the Audio_PlayStreamed native instead. This will consume more client-side bandwidth, however, if the files are played repeatedly. More detailed examples of nearly every native and callback can be found in the filterscript. Last edited by Incognito; 20/08/2012 at 03:12 AM. |
|
|
|
|
|
#3 | |
|
Huge Clucker
![]() ![]() ![]() Join Date: Nov 2007
Posts: 425
Reputation: 2
|
Quote:
Great job! |
|
|
|
|
|
|
#4 |
|
Gangsta
![]() ![]() ![]() ![]() Join Date: Nov 2007
Location: Shenzhen,China
Posts: 679
Reputation: 1
|
Wow,great development!
|
|
|
|
|
|
#5 |
|
Gangsta
![]() ![]() ![]() ![]() Join Date: Jul 2007
Location: hobox
Posts: 943
Reputation: 22
|
OMG nice job!!!
|
|
|
|
|
|
#6 |
|
Huge Clucker
![]() ![]() ![]() Join Date: Feb 2008
Posts: 241
Reputation: 0
|
niiiiiiiiiiiiiiiiiiiiice !!!!!
|
|
|
|
|
|
#7 |
|
Gangsta
![]() ![]() ![]() ![]() Join Date: Feb 2008
Posts: 598
Reputation: 0
|
Nice job, but I think I'll use Punk kids when it comes out, I'v supported his project this far.
I'm still going to tets though, sound sinteresting. |
|
|
|
|
|
#8 |
|
Godfather
![]() ![]() ![]() ![]() ![]() ![]() Join Date: May 2009
Posts: 7,012
Reputation: 83
|
This is amazing! Good work.
|
|
|
|
|
|
#9 |
|
Big Clucker
![]() ![]() Join Date: Oct 2007
Posts: 51
Reputation: 0
|
It's really cool !!!!!
Small suggestion: add GetPluginVersion to simplify the comparison of the client version and version of plugin |
|
|
|
|
|
#10 |
|
Huge Clucker
![]() ![]() ![]() Join Date: Nov 2007
Posts: 425
Reputation: 2
|
Is there a program or some other way to fill audio.inc with names of all the files existed in audiopacks(or only some folders there) folder?
I mean, it's pretty annoying to copy/paste file names, especially if it's about 30 of them.. P.S. Testing, works great |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Audio Plugin Help | PCheriyan007 | Help Archive | 0 | 22/05/2011 06:05 PM |
| Audio Plugin | MEC | Help Archive | 4 | 23/04/2011 05:16 PM |
| Audio plugin | yarrum3 | Help Archive | 1 | 01/01/2011 09:05 AM |
| Audio Plugin Help | jm2rock | Help Archive | 0 | 12/12/2010 12:56 AM |
| Audio Plugin | haering | Archive | 0 | 07/06/2010 07:09 PM |