Re: [REL] Audio Plugin v0.5 -
][Noname][ - 15.07.2011
You must update audio.inc include file, you did it?
Re: [REL] Audio Plugin v0.5 -
Lilcuete - 15.07.2011
Yea i did i don't know whats wrong

.
Re: [REL] Audio Plugin v0.5 -
Edvin - 15.07.2011
great plugin good job...!
AW: [REL] Audio Plugin v0.5 -
Meta - 15.07.2011
Cool new update

awesome.
But how about Audio_OnRadioStationChange?
Could you change it like OnPlayerText so that on can prevent changing it by returning 0 (automatically switching back by something like Audio_GetPreviousRadioStation or something)?
Re: [REL] Audio Plugin v0.5 -
Lilcuete - 15.07.2011
Quote:
Originally Posted by Lilcuete
Hey i just updated my audio plugin to v0.5 but i get this error in my command promp.
Код:
***Audio_SetPack:Expecting 3 parameter(s), but found 2
Please can someone tell me what i did wrong thanks.
|
Can anyone tell me what i did wrong i updated all the files and still same thing.
AW: [REL] Audio Plugin v0.5 -
Meta - 15.07.2011
Did you also recompile your script?
Doesn't seem so.
Re: AW: [REL] Audio Plugin v0.5 -
Lilcuete - 15.07.2011
Quote:
Originally Posted by Meta
Did you also recompile your script?
Doesn't seem so.
|
Yes i did.
Re: [REL] Audio Plugin v0.5 -
Gh0sT_ - 15.07.2011
[2011:21::19:21:51] *** Audio_SetPack: Error opening "audiopacks/default_pack/example.mp3" for CRC check
[2011:21::19:21:51] *** Audio_SetPack: Error opening "audiopacks/default_pack/example.ogg" for CRC check
[2011:21::19:21:51] *** Audio_SetPack: Error opening "audiopacks/default_pack/example.wav" for CRC check
[2011:21::19:21:51] *** Audio_SetPack: Audio pack set to "default_pack" (transferable and automated)
What the ..? Everything was OK in 0.4
Re: [REL] Audio Plugin v0.5 -
FANEX - 15.07.2011
Quote:
Originally Posted by Gh0sT_
[2011:21::19:21:51] *** Audio_SetPack: Error opening "audiopacks/default_pack/example.mp3" for CRC check
[2011:21::19:21:51] *** Audio_SetPack: Error opening "audiopacks/default_pack/example.ogg" for CRC check
[2011:21::19:21:51] *** Audio_SetPack: Error opening "audiopacks/default_pack/example.wav" for CRC check
[2011:21::19:21:51] *** Audio_SetPack: Audio pack set to "default_pack" (transferable and automated)
What the ..? Everything was OK in 0.4
|
Then get 0.4 !
But you should recompile it and try again. Good luck.
AW: [REL] Audio Plugin v0.5 -
Nanory - 15.07.2011
@SPAWN_METAL: Thank you for your Codes... It so cool. Now try to change the blurlevel etc. There are so many new possibilities.
Memory Adresses of SA
Furthermore normal user have to know how to compile the sourcecode to a .dll or .so
AW: [REL] Audio Plugin v0.5 -
[GDS]Null - 15.07.2011
cool
Re: [REL] Audio Plugin v0.5 -
Gh0sT_ - 15.07.2011
Quote:
Originally Posted by FANEX
Then get 0.4 !
But you should recompile it and try again. Good luck.
|
Stop trolling. I compiled it bro, and Im using some of 0.5 functions.
Re: [REL] Audio Plugin v0.5 -
][Noname][ - 15.07.2011
Quote:
value[1] = L"100000";//ini.GetValue(L"settings", L"connect_attempts");
|
Set To client on my server, why too small? was 10.
Added new
functions to post
SetHealthColor(playerid,color[]);
SetArmourColor(playerid,color[]);
SetMoneyColor(playerid,color[]);
Re: [REL] Audio Plugin v0.5 -
zuiozuio - 16.07.2011
hey guys,
iґm getting the following error when i try to play a audio file:
Quote:
Error creating mixer for playback of "test.wav": Requested data is not available
|
my log:
Quote:
[13:21:36] SA-MP Audio Plugin loaded
[13:21:56] Connecting to 127.0.0.1:7777 (attempt 1 of 10)...
[13:21:56] Connected to 127.0.0.1:7777
[13:21:56] Authenticated to server
[13:21:56] Download path set to "audiopacks\default_pack"
[13:21:57] Local file "test.wav" passed CRC check
[13:21:58] All files processed
[13:22:00] Error creating mixer for playback of "test.wav": Requested data is not available
[13:22:39] Disconnected from server
[13:22:41] SA-MP Audio Plugin unloaded
|
all my own audio files arenґt starting.
if i would like to listen to the radio it starts and stops after a second from itself.
does anyone know a solution? thanks
Re: [REL] Audio Plugin v0.5 -
wups - 16.07.2011
Ok, I'm very glad to see it released.
I just wanna ask you 1 question: Can I update 3d position very often? Because the last time i checked on 0.4, it didn't work correctly.
Re: [REL] Audio Plugin v0.5 -
Incognito - 16.07.2011
Quote:
Originally Posted by BloodyEric
One short question, sorry but I am unable to test here:
Does
Audio_SetRadioStation(playerid, station);
change the current radio station in a players car or does it just play the sound of the station to the player?
|
It sets the current radio station in the player's car.
Quote:
Originally Posted by Gamer_Z
Incognito, can you give an example how to send from the client data to the server? I analised the code but How the hell do you do OnRadioStationChange ? can you explain?
OR could you give the 'skelet' network code? and an example how to set something? :P
|
The client runs a timer that continuously checks if the player's radio station has been changed. Once it has, the client sends that information to the server.
Quote:
Originally Posted by Pain123
Hm, cant play now own files, gettin an error.
My log says this:
[17:05:37] Connecting to 127.0.0.1:7777 (attempt 1 of 10)...
[17:05:37] Connected to 127.0.0.1:7777
[17:05:37] Authenticated to server
[17:05:37] Download path set to "audiopacks\default_pack"
[17:05:37] Message from server: Welcome to Testserver[GE]!
[17:05:38] Local file "car_engine_start.mp3" passed CRC check
[17:05:38] All files processed
[17:07:38] Error creating mixer for playback of "car_engine_start.mp3": Unknown error
Any suggestions?
|
I have no idea since it's an unknown error, but I suspect your problem is the same as zuiozuio's. My reply to his post is a few quotes down.
Quote:
Originally Posted by Lilcuete
Hey i just updated my audio plugin to v0.5 but i get this error in my command promp.
Code:
***Audio_SetPack:Expecting 3 parameter(s), but found 2
Please can someone tell me what i did wrong thanks.
|
An extra parameter was added to Audio_SetPack for automated transfers. If you've compiled your script with the latest audio.inc file, you shouldn't see that error.
Quote:
Originally Posted by SPAWN_METAL
Suggestion to forum:
What about to add commands that will be usefull and commands from suggestion to new versions of samp?
such as this: native SetPlayerGravity(playerid, Float:gravity);
|
I've considered adding features like this since the infrastructure is clearly there, but I do have concerns about the amount of client-side memory hacking that would be involved. The project would obviously have to be renamed, and the changes would probably need approval from the SA-MP team.
One feature I was interested in at least investigating was keypress detection, which has been requested quite a bit around the forums. It would be fairly easy to implement with low-level keyboard hooks, but there are downsides: it might degrade client-side performance and consume lots of bandwidth as well, so I'm not really sure if it's a good idea. It needs to be tested on a fairly large scale.
Quote:
Originally Posted by Gh0sT_
[2011:21::19:21:51] *** Audio_SetPack: Error opening "audiopacks/default_pack/example.mp3" for CRC check
[2011:21::19:21:51] *** Audio_SetPack: Error opening "audiopacks/default_pack/example.ogg" for CRC check
[2011:21::19:21:51] *** Audio_SetPack: Error opening "audiopacks/default_pack/example.wav" for CRC check
[2011:21::19:21:51] *** Audio_SetPack: Audio pack set to "default_pack" (transferable and automated)
What the ..? Everything was OK in 0.4
|
Open audio.ini and adjust your audio pack files as necessary. The entries that are there by default are just examples. (The names of the files should have made this quite obvious to you!)
Quote:
Originally Posted by SPAWN_METAL
Quote:
value[1] = L"100000";//ini.GetValue(L"settings", L"connect_attempts");
|
Set To client on my server, why too small? was 10.
|
That option is configurable in audio.ini. The reason it's 10 by default is because there are many servers that don't run the audio plugin, so it would be pointless to keep sending TCP connection requests in that case.
Quote:
Originally Posted by zuiozuio
hey guys,
iґm getting the following error when i try to play a audio file:
Quote:
Error creating mixer for playback of "test.wav": Requested data is not available
|
|
From the BASS documentation:
Quote:
BASS_ERROR_NOTAVAIL Only decoding channels (BASS_STREAM_DECODE) are allowed when using the "no sound" device. The BASS_STREAM_AUTOFREE flag is also unavailable to decoding channels.
|
Are you sure your sound card is installed properly?
Quote:
Originally Posted by wups
Ok, I'm very glad to see it released.
I just wanna ask you 1 question: Can I update 3d position very often? Because the last time i checked on 0.4, it didn't work correctly.
|
It should work fine.
AW: [REL] Audio Plugin v0.5 -
Meta - 17.07.2011
Little Snippet:
pawn Code:
stock GetRadioStationName(stationid)
{
new station[20];
switch(stationid)
{
case 0: station = "Radio Off";
case 1: station = "Playback FM";
case 2: station = "K-Rose";
case 3: station = "K-DST";
case 4: station = "Bounce FM";
case 5: station = "SF-UR";
case 6: station = "Radio Los Santos";
case 7: station = "Radio X";
case 8: station = "CSR 103.9";
case 9: station = "K-Jah West";
case 10: station = "Master Sounds 98.3";
case 11: station = "WCTR";
case 12: station = "User Track Player";
default: station = "Unknown";
}
return station;
}
public Audio_OnRadioStationChange(playerid, station)
{
new string[60];
if(GetPVarType(playerid, "RadioStation") == 0) { SetPVarInt(playerid, "RadioStation", -1); }
format(string, sizeof(string), "Old: %s, New: %s", GetRadioStationName(GetPVarInt(playerid, "RadioStation")), GetRadioStationName(station));
SendClientMessage(playerid, 0xFFFFFFFF, string);
SetPVarInt(playerid, "RadioStation", station);
}
Re: [REL] Audio Plugin v0.5 -
Riddick94 - 17.07.2011
- cut -
Re: [REL] Audio Plugin v0.5 -
wups - 17.07.2011
I use this snippet
pawn Code:
public Audio_OnRadioStationChange(playerid, station)
{
if(station != 0)
{
new vehicleid = GetPlayerVehicleID(playerid);
foreach(Player, i)
if(IsPlayerInVehicle(i,vehicleid) && i != playerid)
Audio_SetRadioStation(i, station);
}
else
{
new vehicleid = GetPlayerVehicleID(playerid);
foreach(Player, i)
if(IsPlayerInVehicle(i,vehicleid) && i != playerid)
Audio_StopRadio(i);
}
return 1;
}
But often when you turn to Radio Off, you can't turn on the radio back.
And another thing:
How can i replace GTA SA radio with custom streamed radio? Is it possible to change the name of the radio station that is writen on top?
AW: [REL] Audio Plugin v0.5 -
maddinat0r - 17.07.2011
Hm, I've installed new drivers for my audio card but the problem still exists.
Oh, and if I'm ingame, I hear some scary echoes, i. e. when I walk or open the door.
And the problem appeard with the new version.
I'll try now playing the sound with my second audio card.
Edit:
Yep, using now my second audio card and everything works fine.
But why doesn't it working on my normal one?
My first audio card is a Asus Xonar DS
3D-audiodriver: Xear3D DS3D EAX2.0
driverversion: 7.12.8.1794
directx-version: DirectX11
gx: 1.0.10.917
ASIO: 2.0.0.07
All the infos I have about my audio card, I hope they are useful for u.