Author Topic: 2D sounds not playing? [Fixed]  (Read 716 times)

Snip from the addon I'm working on:

Code: [Select]
new AudioProfile(AnnouncerUpdateSound)
{
filename = "./plink.wav";
description = AudioClose3d;
is3D = false;
preload = true;
};
new AudioProfile(AnnounceSound)
{
filename = "./bleep.wav";
description = AudioClose3d;
is3D = false;
preload = true;
};
new AudioProfile(AnnouncerWarningSound)
{
filename = "./pakbeep.wav";
description = AudioClose3d;
is3D = false;
preload = true;
};

$buildSIA = 77;
$versionSIA = "3-development";





function servercmdSetAnnounceFont(%client,%afont)
{
if(%client.isHost == true)
{
switch(%afont)
{
case 0:
$fontv = "Palatino Linotype";
$announcefont = "Palatino Linotype";
if($bold == 1)
{
$announcefont = $announcefont SPC "Bold";
}
messageAll("", "\c4<bitmap:add-ons/script_announcebrickcount/cog.png><color:00ff00> TBP Announcer: \c6The announcer font was changed to " @ $announcefont @ " by the host.");
for(%i = 0; %i < ClientGroup.getCount(); %i++)
{
%cl = ClientGroup.getObject(%i);
%cl.play2D(AnnouncerUpdateSound);
}

Why isn't this playing? I can't figure it out.

Changed "new" to "datablock" and it worked.
« Last Edit: July 25, 2010, 03:40:58 PM by TheBlackParrot »

Does your sound work when played as an event sound on a brick?

Does your sound work when played as an event sound on a brick?
The sound isn't even there when I try to do that.

This is getting a little bit more urgent, someone told me that v2 of this addon changed the version number of Blockland, causing their server not to show up.

I need to have this answered so I can release v3 ASAP.

The sound isn't even there when I try to do that.
If the sound has a stereo channel (different sound from left and right speaker) it may not play or load in Blockland.