|
10-02-2010, 02:46 PM | #1 |
Banned
Join Date: Sep 2008
Class/Position: Soldier Gametype: AVD Affiliations: TALOS Posts Rated Helpful 5 Times
|
Weird Precaching and Static
I have my soundscapes set up for my map. I named one of my sounds, for example, as money.pickup and set the correct target file. I tried to then precache the sound with PrecacheSound("money.pickup") but it didn't work. I had to manually precache the location with PrecacheSound("mymap/money_pickup.wav"). Okay, so considering I had to precache the absolute location, I tried to play the sound using the absolute location. That failed. So, I tried playing the sound using the sound name: money.pickup.
That worked. So, I precache the location and then play it via its name? Anyway, that works, as counter-intuitive as it is, but the wav is played as pure static. I assume this is because it wasn't converted correctly to be used on the engine. So, question is: What do I convert this file to in order to use it through lua? |
|
10-02-2010, 09:45 PM | #2 |
Stuff Do-er
Lua Team
Wiki Team Fortress Forever Staff |
Don't use _soundscapes.txt. Use _level_sounds.txt. See hunted/waterpolo.
As for the wav format, a quick google gave me this: - PCM or ADPCM - Stereo or Mono - 8bit or 16bit - 11025, 22500, or 41000 Hz
__________________
#FF.Pickup ยค Fortress-Forever pickups My Non-official Maps Released FF_DM_Squeek - FF_2Mesa3_Classic - FF_Siege_Classic Beta FF_Myth - FF_Redlight_Greenlight Sick of the people on the internet, always moanin'. They just moan. - Karl Pilkington |
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|