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


Post Reply 
 
Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Sounds, .snt and .ogg
Author Message
Rapture Offline
Posting Freak

Posts: 972
Joined: May 2011
Reputation: 26
Post: #1
Sounds, .snt and .ogg

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~
(This post was last modified: 08-27-2011 07:55 PM by Rapture.)
08-27-2011 07:20 PM
Find all posts by this user Quote this message in a reply
Your Computer Offline
SCAN ME!

Posts: 3,475
Joined: Jul 2011
Reputation: 234
Post: #2
RE: Sounds, .snt and .ogg

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

Tutorials: From Noob to Pro
08-27-2011 07:26 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Kurton Offline
Senior Member

Posts: 369
Joined: Oct 2010
Reputation: 9
Post: #3
RE: Sounds, .snt and .ogg

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:

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

(This post was last modified: 08-27-2011 07:27 PM by Kurton.)
08-27-2011 07:27 PM
Find all posts by this user Quote this message in a reply
Elven Offline
Posting Freak

Posts: 859
Joined: Aug 2011
Reputation: 26
Post: #4
RE: Sounds, .snt and .ogg

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

The Interrogation
Chapter 1

My tutorials
08-27-2011 07:36 PM
Find all posts by this user Quote this message in a reply
Rapture Offline
Posting Freak

Posts: 972
Joined: May 2011
Reputation: 26
Post: #5
RE: Sounds, .snt and .ogg

Grr... still can't find out whats wrong with it.

<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?
08-27-2011 07:49 PM
Find all posts by this user Quote this message in a reply
Elven Offline
Posting Freak

Posts: 859
Joined: Aug 2011
Reputation: 26
Post: #6
RE: Sounds, .snt and .ogg

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

Here is example of mine what worked:

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

The Interrogation
Chapter 1

My tutorials
(This post was last modified: 08-27-2011 07:51 PM by Elven.)
08-27-2011 07:51 PM
Find all posts by this user Quote this message in a reply
Juby Away
Senior Member

Posts: 290
Joined: May 2011
Reputation: 5
Post: #7
RE: Sounds, .snt and .ogg

I would change the priority of the sound there.

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

Insanity. Static.
08-27-2011 07:53 PM
Find all posts by this user Quote this message in a reply
Rapture Offline
Posting Freak

Posts: 972
Joined: May 2011
Reputation: 26
Post: #8
RE: Sounds, .snt and .ogg

(08-27-2011 07:51 PM)Elven Wrote:  remove .ogg ^^, it wil lread without that too Smile

Here is example of mine what worked:

<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.
(This post was last modified: 08-27-2011 07:56 PM by Rapture.)
08-27-2011 07:55 PM
Find all posts by this user Quote this message in a reply
Elven Offline
Posting Freak

Posts: 859
Joined: Aug 2011
Reputation: 26
Post: #9
RE: Sounds, .snt and .ogg

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

The Interrogation
Chapter 1

My tutorials
08-27-2011 08:44 PM
Find all posts by this user Quote this message in a reply
Post Reply 




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