15.07.2011, 02:10
You must update audio.inc include file, you did it?
[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 |
value[1] = L"100000";//ini.GetValue(L"settings", L"connect_attempts"); |
Error creating mixer for playback of "test.wav": Requested data is not available |
[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 |
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? |
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 |
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? |
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 |
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); |
[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 |
Quote:
|
hey guys,
iґm getting the following error when i try to play a audio file: 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. |
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);
}
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;
}