Facebook Twitter YouTube Frictional Games | Forum | Newsletter | Dev Blog | Dev Wiki | Support


Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
I can't make my sound work
Author Message
JenniferOrange Offline
Senior Member

Posts: 424
Joined: Jun 2011
Reputation: 33
Post: #2
RE: I can't make my sound work

(03-07-2012 10:51 PM)pingo2 Wrote:  Hi forum

I have the problem that i can't make my sound work.

I put my MP3 in audacity and exported it as .ogg(vorbis) to the "sounds" folder in my CSfolder where i also made a .snt file with the same name.


Here is what my .snt contains:
<SOUNDENTITY>  <SOUNDS>      <Main>          <Sound File="clock" />      </Main>  </SOUNDS>  <PROPERTIES Volume="1" MinDistance="1" MaxDistance="13" Random="1" Interval="0" FadeEnd="False" FadeStart="False" Stream="false" Loop="false" Use3D="false" Blockable="false" BlockVolumeMul="0.5" Priority="0" /></SOUNDENTITY>


to play the sound i use:

PlaySoundAtEntity("clock", "clock.snt", "clock_grandfather_1", 2, false);


and i am 100% it is called since since it shows the message that is in the same callback.

Can any of you help me please?
<SOUNDENTITY>  <SOUNDS>      <Main>          <Sound File="clock.ogg" />      </Main>  </SOUNDS>  <PROPERTIES Volume="1" MinDistance="1" MaxDistance="13" Random="1" Interval="0" FadeEnd="False" FadeStart="False" Stream="false" Loop="false" Use3D="false" Blockable="false" BlockVolumeMul="0.5" Priority="0" /></SOUNDENTITY>


Keep both the .ogg and .snt in your custom stories' name folder, then in a new folder called music. I know it may not be needed but I do anyway, so I don't accidentally delete it.

Ba-da bing, ba-da boom.
03-08-2012 12:09 AM
Find all posts by this user Quote this message in a reply
Post Reply 


Messages In This Thread
I can't make my sound work - ingedoom - 03-07-2012, 10:51 PM
RE: I can't make my sound work - JenniferOrange - 03-08-2012 12:09 AM
RE: I can't make my sound work - ingedoom - 03-08-2012, 01:01 PM
RE: I can't make my sound work - ingedoom - 03-08-2012, 07:14 AM
RE: I can't make my sound work - ingedoom - 03-08-2012, 03:41 PM



User(s) browsing this thread: 1 Guest(s)