[Plugin] Audio Plugin

Quote:
Originally Posted by [DOG]irinel1996
Посмотреть сообщение
How does work Audio_Set3DPosition with Audio_PlaySequence, I mean how can I play a sequence with a 3D position?

By the way, how can I stop playing a sequence?

Thank you.
Audio_PlaySequence returns handle id, so
PHP код:
new handle Audio_PlaySequence(...);
Audio_Set3DPosition(playerid,handle,...);
Audio_Stop(playerid,handle); //stop sequence 
Reply

Great !
Reply

Is this compatible with 0.3x?
Reply

Quote:
Originally Posted by ESGaming
Посмотреть сообщение
Is this compatible with 0.3x?
Yes, it is...
Reply

Hmm.. I've got installed correctly, songs are downloading and etc. But I hear no songs upon /playing.
Reply

Add Audio_GetRadioStation.
Reply

Quote:
Originally Posted by ESGaming
Посмотреть сообщение
Hmm.. I've got installed correctly, songs are downloading and etc. But I hear no songs upon /playing.
Try to use Audio_IsClientConnected to check if you've connected to the server.
I actually have a problem that I'm not connected to the server even if I installed the client correctly.
I solved it by moving everything out of "libraries" folder.
Reply

Quote:
Originally Posted by leong124
Посмотреть сообщение
Try to use Audio_IsClientConnected to check if you've connected to the server.
I actually have a problem that I'm not connected to the server even if I installed the client correctly.
I solved it by moving everything out of "libraries" folder.
Already covered that, The server sends a client message whenever a connection to the audio server is made.


No good though.
Reply

i wish this never required audio client D:
Reply

Is the client version required to download by everybody on a server it's on?
Reply

Does the client have to have the client side plugin to stream?
Reply

Quote:
Originally Posted by Crayder
Посмотреть сообщение
Does the client have to have the client side plugin to stream?
Yes, the client must have the clientside plugin.
Reply

@Kenny365: Are you sure you included the Include inside the test.pwn? Plugin successfully loaded via Log?
Reply

@Incognito: Please move the project to GitHub.
Reply

Quote:
Originally Posted by LadyNyuuu
Посмотреть сообщение
@Kenny365: Are you sure you included the Include inside the test.pwn? Plugin successfully loaded via Log?
Yes, I have everything that I can think of in place correctly.
Reply

how i can compile it with linux?

i get this error: (edit) fixed now
Код:
In file included from src/session.cpp:27:
include/boost/lexical_cast.hpp: In function 'Target boost::lexical_cast(const Source&) [with Target = int, Source = std::basic_string<char,                        std::char_traits<char>, std::allocator<char> >]':
include/boost/lexical_cast.hpp:2314: warning: 'result' may be used uninitialized in this function
src/session.cpp: In member function 'void Session::performSequence()':
src/session.cpp:531: warning: assuming signed overflow does not occur when assuming that (X + c) >= X is always true
Linking audio
/usr/bin/ld: obj/linux/Release/error_code.o: relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; re                       compile with -fPIC
obj/linux/Release/error_code.o: could not read symbols: Bad value
collect2: ld returned 1 exit status
make[1]: *** [bin/linux/Release/audio.so] Error 1
make: *** [audio] Error 2
Now i get this error:
wrong ELF class: ELFCLASS64

How i can do?
Reply

is this support for lastest sa-mp version or need to do something to update by myself ?
Reply

It works on all versions of SA-MP
Reply

why sizeof server plugins when i compile myself it was 1.3mb but in forum (server plugins package) it's just 300kb
Reply

oh i got it. chage to release and size are the same
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)