Frictional Games Forum (read-only)
Sounds, .snt and .ogg - Printable Version

+- Frictional Games Forum (read-only) (https://www.frictionalgames.com/forum)
+-- Forum: Amnesia: The Dark Descent (https://www.frictionalgames.com/forum/forum-6.html)
+--- Forum: Custom Stories, TCs & Mods - Development (https://www.frictionalgames.com/forum/forum-38.html)
+---- Forum: Development Support (https://www.frictionalgames.com/forum/forum-39.html)
+---- Thread: Sounds, .snt and .ogg (/thread-10015.html)



Sounds, .snt and .ogg - Rapture - 08-27-2011

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~


RE: Sounds, .snt and .ogg - Your Computer - 08-27-2011

Open one up in a text editor, replace needed parts, and save with another name.


RE: Sounds, .snt and .ogg - Kurton - 08-27-2011

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>



RE: Sounds, .snt and .ogg - Elven - 08-27-2011

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


RE: Sounds, .snt and .ogg - Rapture - 08-27-2011

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?




RE: Sounds, .snt and .ogg - Elven - 08-27-2011

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)?


RE: Sounds, .snt and .ogg - Juby - 08-27-2011

I would change the priority of the sound there.

Priority="1" instead of Priority="0"



RE: Sounds, .snt and .ogg - Rapture - 08-27-2011

(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.




RE: Sounds, .snt and .ogg - Elven - 08-27-2011

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