Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Voice in amnesia
Gamemakingdude Offline
Senior Member

Posts: 470
Threads: 82
Joined: Nov 2010
Reputation: 9
#11
RE: Voice in amnesia

Anyone else know?

Rep if like me or im helpful or you love my stories!
Stephanos house
10-01-2011, 12:33 PM
Find
Acies Offline
Posting Freak

Posts: 1,643
Threads: 60
Joined: Feb 2011
Reputation: 73
#12
RE: Voice in amnesia

Okay. Here is the steps for creating a localized sound in amnesia:
1. Record your sound
2. When rendering it; Make sure you render it in mono and not stereo (ogg. file of course). If it's a stereo sound it cannot be played at a specific point.
3. place the .ogg file in custom_stories/yourstory/sounds
4. create an .snt file for that sound (an .snt is a text-file which points to your soundfile)
here's an example:
Spoiler below!

<SOUNDENTITY>
<SOUNDS>
<Main>
<Sound File="Alexandria_Hush" />
</Main>
</SOUNDS>
<PROPERTIES Volume="0.5" MinDistance="12" MaxDistance="50" Random="1" Interval="0" FadeEnd="False" FadeStart="False" Stream="False" Loop="False" Use3D="True" Blockable="False" BlockVolumeMul="0.7" Priority="0" />
</SOUNDENTITY>

Notice that when pointing to the sound:
<Sound File="Alexandria_Hush" />

No extension should be included.
In order (as I have understood it):
1. The volume
2. The distance at which the volume starts fading
3. The distance at which your hear nothing

Place the .snt file in your sound folder. Then play it using:
PlaySoundAtEntity(string& asSoundName, string& asSoundFile, string& asEntity, float afFadeTime, bool abSaveSound);

If you want subtitles use:
AddEffectVoice(string& asVoiceFile, string& asEffectFile, string& asTextCat, string& asTextEntry,
bool abUsePosition, string& asPosEntity, float afMinDistance, float afMaxDistance);

[Image: mZiYnxe.png]


(This post was last modified: 10-01-2011, 03:03 PM by Acies.)
10-01-2011, 03:01 PM
Find




Users browsing this thread: 1 Guest(s)