Author Topic: How do I properly set up a sound so it plays?  (Read 969 times)

I was able to find a sound file I've wanted for ages, and I was able to correctly package it and whatnot. The add-on loads fine, no errors, nothing.
However when I try to use the sound in game, it doesn't seem to play.
I'm not entirely sure why, but I guessed I missed an important thing.

What are some certain properties that need to be help by the sound, such as bitrate, hertz, or if it needs to be mono/stereo.

Here's the file if anyone wants to check it. I have no idea what's wrong with it.

I doubt there's anything wrong with the sound file itself. This all you need in the server.cs.

Code: [Select]
datablock AudioProfile(MySound)
{
filename = "./MySound.wav";
description = AudioClosest3d;
preload = false;
};

Pretty sure it has to be mono.

I doubt there's anything wrong with the sound file itself. This all you need in the server.cs.

Code: [Select]
datablock AudioProfile(MySound)
{
filename = "./MySound.wav";
description = AudioClosest3d;
preload = false;
};
I just found my issue then.
I had the sound in brackets saying AlarmLoud instead of LoudAlarm.
Thanks a lot. <3