Home   Help Search Login Register  

Author Topic: .ogg sound in Arma  (Read 1190 times)

0 Members and 1 Guest are viewing this topic.

Offline Ext3rmin4tor

  • Members
  • *
.ogg sound in Arma
« on: 27 Dec 2008, 19:30:12 »
I'm trying to play a sound in a script. The  file is the Geiger counter sound and I converted it from .wav format into .ogg with Audacity but the game doesn't play it. The Cfgsound classes in Description.ext are correct, so I'm wondering if there are specific values to use for ArmA .ogg files (i.e. bitrate, frequency, ecc.)? I used this program also for musics and it works perfectly so I don't know why it doesn't play the sound.
How can you shoot women and children?
Easy! Ya' just don't lead'em so much! Ain't war hell?!!

Offline WinKIller0

  • Members
  • *
  • Me pandaren, you like me
Re: .ogg sound in Arma
« Reply #1 on: 27 Dec 2008, 19:41:39 »
Can't tell for sure but I have this problem too with some files. Don't know what causes it but you just can't play this file even if everything would be O.K.

I think you should try to change the file a bit (so the 101010 line would be a bit differen) and rename the newly made file something else like from sound1.ogg to copy_sound_22.ogg and make a new description "call" for the file (dunno if you should leave the old description line there though) then it should work*, at least I think I made few files roll wiht that tactic

*Really can't tell for sure, it was this or I just got lucky
You haven't seen the end of The Devil yet...

Offline Tyger

  • Former Staff
  • ****
  • I was at OFPEC when it still had dirt floors...
    • OFPEC
Re: .ogg sound in Arma
« Reply #2 on: 27 Dec 2008, 20:40:09 »
Quote
so I'm wondering if there are specific values to use for ArmA .ogg files (i.e. bitrate, frequency, ecc.)?
Yes  :D
MusicSpeechRadio
Freqency44100kHz22050-44100kHz11025-44100kHz
Bit-size16bit16bit16bit
Stereo/MonoStereoMonoMono
BitrateConstantConstantConstant
LengthAny lengthAny lengthCertain size

Sorry i forget the size, but i'm sure you'll find out if you need to.. lol  :whistle:
Anyway, the biggest reason for sound failure is that you've compiled at a non-constant bit-rate or that you compiled in the wrong stereo vs. mono.

[EDIT] Any bit rate is compatible, as long as it is constant.
« Last Edit: 27 Dec 2008, 20:43:23 by Tyger »
"People sleep soundly at night only because rough men stand ready to do violence on their behalf." - George Orwell

MSG Mike Everret - We Will Never Forget - '75-'08

Offline Ext3rmin4tor

  • Members
  • *
Re: .ogg sound in Arma
« Reply #3 on: 28 Dec 2008, 12:29:31 »
Probably I compiled the file with stereo output and not mono since usually the default option is stereo.

EDIT: Lol now don't laugh at me but I found the error... In the sound path I put

sound[] = {"Sound\GeigerCounter.ogg", +10db, 1.0};

instead of

sound[] = {"\Sound\GeigerCounter.ogg", +10db, 1.0};

and the game couldn't read the path correctly
« Last Edit: 28 Dec 2008, 13:26:04 by Ext3rmin4tor »
How can you shoot women and children?
Easy! Ya' just don't lead'em so much! Ain't war hell?!!