Page 1 of 1
Implementing "in-game music" - PC
Posted: Mon Jun 18, 2007 2:47 am
by Tireces
Heya, any1 know how to do it on PC.
Lets say that I have a cool mp3 track and would like to hear it in my plug - triggered in the middle of game when large group of dark begin their charge.
Any guides or tips plz ?
TIA
Cheers
Tir
Posted: Mon Jun 18, 2007 7:05 am
by haravikk
Hmmm, best way would be trigger it using a scripted SOUND action. You need to first of all import the .mp3 in Fear, Fear only accepts .wav which I believe should be 8 or 16-bit sampled at 44.1khz (don't quote me on that though, I've been doing a lot of editing in some other pieces of software recently).
When you have the sound in Fear, make sure to tell it that it can occupy multiple channels and that it cannot be interrupted. This should ensure that once it starts playing that it won't stop until finished. The issue with this is that the theme music won't loop, if it fades in and out at the beginning/end then you could probably get away with faking it by simply triggering the sound again after the length of the song, but you can't be 100% sure of when the song actually finishes for each player, I doubt it'd be far off though.
The alternative is to use an ambient sound, but their range can only be so large, making it unsuitable for a large map unless you know where the light forces are going to be.
Posted: Mon Jun 18, 2007 7:13 am
by gugusm
Well, I've been messing with it recently and it should be 16-bit, wav, 22050 Hz and mono for sure.
And about this scripting: I think your SOUND action can't be "Initially Active" (unless you'll give it a trigger time), otherwise your sound won't play.