OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: HOBOMAN on 06 Jul 2004, 21:09:59

Title: Problems with .wav files :(
Post by: HOBOMAN on 06 Jul 2004, 21:09:59
Well i was working on one of my missions and the sound files just will not play, here is part of the Description.ext, i dont see any problems!

class CfgSounds
{
     sounds[] = { };

     class spark
     {
         name = "spark"
         sound[] = {\sound\spark.wav, db + 5, 1.0};
         titles[] = {0, ""};
     };
     class Wind
     {
         name = "Wind";
         sound[] = {\sound\Wind.wav, db + 40, 5.0};
         titles[] = {0, ""};
     };
};

class CfgMusic
{
         tracks[] = { };

     class ironman
     {
         name = "ironman";
         sound[] = {\music\ironman.wav, db + 5, 1.0};
     };
     class ussr
     {
         name = "ussr";
         sound[] = {\music\ussr.wav, db + 5, 1.0};
     };
};

Can somebody please helping find the problem, the auido files are .wav, which works with opf.

Thx
Title: Re:Problems with .wav files :(
Post by: Blanco on 06 Jul 2004, 21:19:10
Code: [Select]
class CfgSounds
{
    sounds[] = {spark, wind };

    class spark
    {
        name = "spark"
        sound[] = {\sound\spark.wav, db + 5, 1.0};
        titles[] = {0, ""};
    };
    class Wind
    {
        name = "Wind";
        sound[] = {\sound\Wind.wav, db + 40, 5.0};
        titles[] = {0, ""};
    };
};

class CfgMusic
{
        tracks[] = {ironman, ussr };

    class ironman
    {
        name = "ironman";
        sound[] = {\music\ironman.wav, db + 5, 1.0};
    };
    class ussr
    {
        name = "ussr";
        sound[] = {\music\ussr.wav, db + 5, 1.0};
    };
};
Title: Re:Problems with .wav files :(
Post by: HOBOMAN on 06 Jul 2004, 21:25:28
could this info help?

Bit rate 20kps
channels 1
audio sample rate 16hz
audio format mpeg layer-3
Title: Re:Problems with .wav files :(
Post by: HOBOMAN on 07 Jul 2004, 02:14:19
Please help!!! ??? I have no clue what is wrong  ???
Title: Re:Problems with .wav files :(
Post by: ponq on 07 Jul 2004, 11:01:17
from the sticky post at the top of this forum :

 U can leave the channels: stereo, Bit rate must be 128kbps-standard and BIS used it too, Encoding
should be Constant Bitrate (a must) and Frequency-44100hz
Title: Re:Problems with .wav files :(
Post by: Rokket on 07 Jul 2004, 13:42:25
I think the real problem is wav files - they must be .ogg files! Check out Sound tute here are OFPEC, and various free conversation programs. Vorbizz Ogg Drop (or something like that) is easy, just drag and drop wav files and they convert to OFP .ogg files.
Title: Re:Problems with .wav files :(
Post by: Blanco on 07 Jul 2004, 17:13:07
No, it works with .wav, but it's not recommended due the filesize, use .ogg or even .wss.

Read Bloodmixer's soundtutorial 1.3, it's all there...

http://members.lycos.co.uk/bloodmixer/

btw : your description.ext was wrong, see the 2th post.


Title: Re:Problems with .wav files :(
Post by: HOBOMAN on 07 Jul 2004, 21:29:59
Thanks!
Title: Re:Problems with .wav files :(
Post by: HOBOMAN on 08 Jul 2004, 01:31:08
So one final, question: I cant get the sound the stop playing ! :) (well atleast they are playing  :P)