Last visit was: It is currently Fri Jul 30, 2010 9:50 am


All times are UTC - 5 hours




Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: Custom Sound Problem
PostPosted: Sat Mar 13, 2010 4:35 pm 
Test Participant

Joined: Tue Aug 25, 2009 8:13 pm
Posts: 30
I'm trying to import a custom sound into my map, but I can't get it to play in the level. It shows up and plays correctly in the sound browser, but when I compile and run the map, it doesn't work. Any ideas?


Top
Offline Profile  
 
 Post subject: Re: Custom Sound Problem
PostPosted: Sat Mar 13, 2010 6:14 pm 
Loves Cake
User avatar

Joined: Thu May 28, 2009 6:45 am
Posts: 407
Location: Here.
Do you have a trigger that activates the sound? :D

_________________
"You wake up in a very strange location. The computer called GLaDOS talks about upcoming test experience" - Aperture Science Business Magnet, 3002

:D


Top
Offline Profile  
 
 Post subject: Re: Custom Sound Problem
PostPosted: Sat Mar 13, 2010 7:44 pm 
Test Participant

Joined: Tue Aug 25, 2009 8:13 pm
Posts: 30
Yes, a button. When the button is pressed, it fires a PlaySound on the ambient_generic. The ambient_generic has Start Silent checked. This setup works with other in-game sounds, so the only difference is the audio file.


Top
Offline Profile  
 
 Post subject: Re: Custom Sound Problem
PostPosted: Sun Mar 14, 2010 3:06 am 
Loves Cake
User avatar

Joined: Fri May 30, 2008 11:20 am
Posts: 306
Location: Slovakia
This must have something to do with the format of the sound. Make sure the WAV file is not compressed (I don't know if other requirements as frequency etc... are required).

Also try looking into the console, it could write an error message saying why it couldn't play the sound.

_________________
Test Chamber 74:
(percentage calculation sphere self-test failed!)
108.1% done, -8.1% remaining...
Released here!


Top
Offline Profile  
 
 Post subject: Re: Custom Sound Problem
PostPosted: Tue Mar 16, 2010 12:50 pm 
Test Supervisor
User avatar

Joined: Sun Mar 02, 2008 8:28 pm
Posts: 118
I had this problem. See if your sound folder in the portal directory is named "sound" and NOT "sounds". took me ages to notice this cos all the other folders have an "s" on the end except sound.

crafty valve imo :)

Hope it helps

_________________
My signature broke :(


Top
Offline Profile  
 
 Post subject: Re: Custom Sound Problem
PostPosted: Tue Mar 16, 2010 1:14 pm 
Test Participant

Joined: Tue Aug 25, 2009 8:13 pm
Posts: 30
It is "sound". I had read about that problem previously and was careful to avoid it. :P That wouldn't be an issue anyways, because as I said, the sound imports and plays correctly in the sound browser, just not in game. The problem is getting the sound to play when I run the map, not importing it into Hammer/Source/Portal.


Top
Offline Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 

All times are UTC - 5 hours


Who is online

Users browsing this forum: Yahoo [Bot] and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
Theme created StylerBB.net & kodeki

phpBB SEO