Frictional Games Forum (read-only)

Full Version: Sounds, .snt and .ogg
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I have made a .ogg, but I'm confused with the .snt. Looking up google on it wasn't very helpful for a sound format. So what do I do to save to a .snt file?

~Thanks~
Open one up in a text editor, replace needed parts, and save with another name.
A .snt file is just XML text used by the engine to do more specific things with the sound, like alter the volume, or if it loops. Here's an example, you can just copy and use it with whatever ogg file you have:

Code:
<SOUNDENTITY>
  <SOUNDS>
      <Main>
          <Sound File="sound_file" />
      </Main>
  </SOUNDS>
  <PROPERTIES Volume="1" MinDistance="1" MaxDistance="100" Random="1" Interval="0" FadeEnd="False" FadeStart="False" Stream="False" Loop="False" Use3D="True" Blockable="True" BlockVolumeMul="0.7" Priority="0" />
</SOUNDENTITY>
Make sure to save that into your custom story folder EXACT SAME PATH as well Smile! Then others who play your custom story can also hear it Wink
Grr... still can't find out whats wrong with it.

Code:
<SOUNDENTITY>
<SOUNDS>
  <Main>
   <Sound File="RabbitWhimpering.ogg" />
  </Main>
</SOUNDS>
<PROPERTIES Volume="1" MinDistance="1" MaxDistance="100" Random="1" Interval="0" FadeEnd="True" FadeStart="False" Stream="False" Loop="False" Use3D="True" Blockable="True" BlockVolumeMul="0.7" Priority="0" />
</SOUNDENTITY>

I have it in my 7 Deadly Sins > sounds folder. I have a RabbitWhimpering.ogg that I know that works (audacity tested it, and exported it from), and a RabbitWhimpering.snt with the file text above.

I know my code is working, but it simply won't play it! I can find the sound file in the Level Editor and place it down, but it won't play the sound... Sad

What else am I missing?

remove .ogg ^^, it wil lread without that too Smile

Here is example of mine what worked:

Code:
<SOUNDENTITY>
  <SOUNDS>
      <Main>
          <Sound File="firebucket" />
      </Main>
  </SOUNDS>
  <PROPERTIES Volume="1.00" MinDistance="1" MaxDistance="18" Random="1" Interval="0" FadeEnd="False" FadeStart="False" Stream="False" Loop="False" Use3D="True" Blockable="False" BlockVolumeMul="0.5" Priority="0" />
</SOUNDENTITY>

PS: Maybe it is that volume must be 1.00 (with comma)?
I would change the priority of the sound there.

Priority="1" instead of Priority="0"
(08-27-2011, 07:51 PM)Elven Wrote: [ -> ]remove .ogg ^^, it wil lread without that too Smile

Here is example of mine what worked:

Code:
<SOUNDENTITY>
  <SOUNDS>
      <Main>
          <Sound File="firebucket" />
      </Main>
  </SOUNDS>
  <PROPERTIES Volume="1.00" MinDistance="1" MaxDistance="18" Random="1" Interval="0" FadeEnd="False" FadeStart="False" Stream="False" Loop="False" Use3D="True" Blockable="False" BlockVolumeMul="0.5" Priority="0" />
</SOUNDENTITY>

PS: Maybe it is that volume must be 1.00 (with comma)?
Thank you! Big Grin The .ogg was messing it up.

P.S. - Sorry about that Kurton, you gave me the right code. I just added some useless stuff to screw it up, thanks.

Hey, we all do mistakes Smile! As long it helped you once out, it shouldn't happen twice Wink