Page 1 of 1

Custom sounds seem to preclude the stock sounds [Solved]

Posted: Wed May 20, 2015 10:41 pm
by Eaol
Hey!

I'm having issues with adding new sounds. I've finally gotten my new sounds in-game and somewhat functional. The other night they were 22050Hz and I had no problem - the stock sounds played alongside them. When I replaced my new sounds with higher-bitrate versions (44100Hz), while they still play and sound even better, the stock sound effects no longer play in my map. I don't recall touching the .lua in between these changes; all of my changes were in either the .SND file, the .asfx file (for changing the resampling to 44100Hz), and, of course, the .wav files (just replacing them with higher-definition versions).

Any tips/ideas on why this occurred? If there's anything I need to share, let me know! :D

Re: Custom sounds seem to preclude the stock sounds

Posted: Thu May 21, 2015 2:26 am
by BF2-Master
I'm literally the worst person on GT to comment - I've only attempted sound once, two days ago, and didn't quite succeed in adding unit VO - but I believe I've heard all sounds have to be 22050Hz with no exception.

Re: Custom sounds seem to preclude the stock sounds

Posted: Thu May 21, 2015 4:12 am
by Anakin
There are a lot of tutorials for custom sounds here: viewtopic.php?f=27&t=13806

And i'm sure that the sounds need to be 22050 Hz. But you should check it in the tutorials.

Re: Custom sounds seem to preclude the stock sounds

Posted: Thu May 21, 2015 1:20 pm
by Eaol
Ok, but then what's with Marth being able to do 44100Hz and 8000Hz sound effects?

Re: Custom sounds seem to preclude the stock sounds

Posted: Thu May 21, 2015 1:22 pm
by jedimoose32
I'm pretty sure sounds can be 44KHz. That's never caused any problems for me. :| Eaol, can you post your sound folder's main .req, era .req, .asfx, and .snd files? And your map's lua.

Re: Custom sounds seem to preclude the stock sounds

Posted: Thu May 21, 2015 1:26 pm
by Eaol
I already got it all working just by switching them with 22050Hz sounds, but that's really strange. There ought to be a way to make it work.

Re: Custom sounds seem to preclude the stock sounds

Posted: Thu May 21, 2015 1:33 pm
by jedimoose32
Glad you got it working at least, but yeah that is strange that it wasn't working for you at 44KHz.

Re: Custom sounds seem to preclude the stock sounds

Posted: Thu May 21, 2015 1:58 pm
by Marth8880
BF2-Master wrote:all sounds have to be 22050Hz with no exception.
Nope. Doesn't matter what their sample rate is. However, the higher the sample rate, the more sound memory is used, so with that said, you shouldn't abuse it. I like 32 kHz, it's a great middle ground.

Re: Custom sounds seem to preclude the stock sounds

Posted: Thu May 21, 2015 2:23 pm
by Eaol
I figured it was something like that, thanks for clearing it up Marth8880!

It's like the particle limit. Gotta budget effects, I guess.