» Sat May 28, 2011 4:51 am
Ok, I finally checked out all the sound related tutorials I could find up top and poking around. Although there's a ton of great info on how to create a pipboy radio station or similar radio/dialog based system, I couldn't find much, if anything relating to making use of the games sound and music functions. The only directly-related info I've seen is in the wiki, but it's pretty generalized and makes no mention of any conditions/rules for getting PlaySound or PlayMusic to work properly. I'll have to dig a bit deeper as I'm sure someone's got this stuff down in writing.
Anyway, I did manage to get sounds working, but haven't tried tackling the music function yet. For sounds, turns out the folder concern I had before was correct.. they not only need to be inside the sound folder, but also inside either the Fx or Songs folder as well. I'm assuming music will be the same way. WAV file specifics don't seem to be nearly as picky as I've heard mentioned... was able to get sound files from 8Khz up to 44Khz, and 96Kbps up to 1411Kbps to play just fine. MP3's also play as sounds, but from what I heard anyway the playback isn't nearly as clear as .wav.
I threw together a hotkeyable equip item that serves up 4 menus with 28 full-length songs in total, but it's using sounds instead of music. It's simple and does what it should for now, though I found out you can play any number of sound files at once but can't stop them, which is why I'm hoping to sort out the music part soon.