Author Topic: That play-sound-from-file SEXP  (Read 1565 times)

0 Members and 1 Guest are viewing this topic.

Offline Petrarch of the VBB

  • Koala-monkey
  • 211
That play-sound-from-file SEXP
Do the sound files have to be in any particular format, and indeed in any particular folder?

sexps.html is most unhelpful.

 

Offline Cobra

  • 212
  • Snake on a Cain
    • Skype
    • Steam
    • Twitter
Re: That play-sound-from-file SEXP
from what i know, you can only use wavs and ogg's. :)
To consider the Earth as the only populated world in infinite space is as absurd as to assert that in an entire field of millet, only one grain will grow. - Metrodorus of Chios
I wept. Mysterious forces beyond my ken had reached into my beautiful mission and energized its pilots with inhuman bomb-firing abilities. I could only imagine the GTVA warriors giving a mighty KIAAIIIIIII shout as they worked their triggers, their biceps bulging with sinew after years of Ivan Drago-esque steroid therapy and weight training. - General Battuta

 

Offline Petrarch of the VBB

  • Koala-monkey
  • 211
Re: That play-sound-from-file SEXP
That'd explain 1 reason why it wasn't working then. Damned MP3s. Cheers.

Now, does it have to be any particular kind of wav? I know the default game sounds are in some crazy format like ADPCM or something.

 

Offline Cobra

  • 212
  • Snake on a Cain
    • Skype
    • Steam
    • Twitter
Re: That play-sound-from-file SEXP
MP3's are not used due to a copyright law that protects them from 'certain' use. ;) Other than that i heard the codemonkeys were having trouble keeping the mp3 music on track, music skipping and speeding up, that kind of thing.

AFAIK i don't think it matters what coding you use, but i've always used PCM.

[EDIT]Hay! What's with the perpetual noob title now? :p
To consider the Earth as the only populated world in infinite space is as absurd as to assert that in an entire field of millet, only one grain will grow. - Metrodorus of Chios
I wept. Mysterious forces beyond my ken had reached into my beautiful mission and energized its pilots with inhuman bomb-firing abilities. I could only imagine the GTVA warriors giving a mighty KIAAIIIIIII shout as they worked their triggers, their biceps bulging with sinew after years of Ivan Drago-esque steroid therapy and weight training. - General Battuta

 

Offline Petrarch of the VBB

  • Koala-monkey
  • 211
Re: That play-sound-from-file SEXP
Aha, it's working as an ogg. Woo.

Now the problem is that it'll require everyone to have Freespace in the same directory if I release the mission, as the filepath I've entered is "D:\Games\FreeSpace2\forlorn.ogg"

Clearly this is not ideal. So, is there a folder I can put it in (Voice>Special?) where it'll be found automatically if I just enter "forlorn.ogg"?

 

Offline CP5670

  • Dr. Evil
  • Global Moderator
  • 212
Re: That play-sound-from-file SEXP
I think it looks in all the audio folders. I have used it with files in 8b22k, special and music with no problems.

 

Offline Petrarch of the VBB

  • Koala-monkey
  • 211
Re: That play-sound-from-file SEXP
Marvellous.

 

Offline WMCoolmon

  • Purveyor of space crack
  • 213
Re: That play-sound-from-file SEXP
I detest those '8b22k' folders. They make people think that music has to be in that format and in that folder.

It really doesn't. You can have 8-bit, 16-bit, and up to 44khz in just the sound folder and it should work fine.
-C