Frictional Games Forum (read-only)
Voice in amnesia - 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)
+--- Thread: Voice in amnesia (/thread-10536.html)

Pages: 1 2


RE: Voice in amnesia - Gamemakingdude - 10-01-2011

Anyone else know?


RE: Voice in amnesia - Acies - 10-01-2011

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