Author Topic: Help with Sound files  (Read 1552 times)

Okay, I packaged a few sound files, created the namecheck.txt, created the description.txt, added server.cs added sounds..
But when I try playing them after starting server, they appear but don't play any sound. Did I type anything wrong?
Description
Quote
Title: RE2
Author: BurningMercy
Sounds for Anything simular to RE2
Namecheck
Quote
Sound_RE2
Server.cs
Quote
datablock AudioProfile(RE2)
{
   filename = "./RE2.wav";
   description = AudioClosest3d;
   preload = false;
};

datablock AudioProfile(SUB1F : RE2)
{
   filename = "./SUB1F.wav";
};

datablock AudioProfile(SUB15 : RE2)
{
   filename = "./SUB15.wav";
};

datablock AudioProfile(SUB40 : RE2)
{
   filename = "./SUB40.wav";
};

What did I do wrong for me not to hear the soundfiles?
   


Try changing preload to true.

Try changing preload to true.

Nothing changed. Still the same as before.


Make sure they are mono

Damn. Since they are very small .wav files, 3s - 10s I left them the same because I noticed when I converted the stereo to mono, the file size got more bigger..
But how could that be the problem? I've looped .wav files before in stereo format and they still worked..

I noticed when I converted the stereo to mono, the file size got more bigger..
This simply isn't possible unless you did something wrong, converting from stereo to mono literally halves the amount of data in the wav file.

This simply isn't possible unless you did something wrong, converting from stereo to mono literally halves the amount of data in the wav file.

Well I ported these .wav files from another game. As an example, I converted a 10s .wav file to mono and instead of it staying the same size (200kb)
It changes to 400kb.

You did something wrong then. What are you using?