Frictional Games Forum (read-only)
Sounds won't play - 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 won't play (/thread-16881.html)



Sounds won't play - Damascus - 07-10-2012

This is driving me absolutely insane. For some reason, I can't get these gui sounds to play. I've even added SetMessages to each part of the timer to ensure that the timer itself is working, and it is. Every message in the function displays properly but there are still no sounds.

PHP Code:
void TimerBegin(string asTimer)
{
    if(
asTimer == "sound1")
    {
        
PlayGuiSound("impact_glass_med.snt"0.0f);
        
SetMessage("Doors""inside"0);
    }
    else if(
asTimer == "sound2")
    {
        
PlayGuiSound("impact_glass_low.snt"0.0f);
        
SetMessage("Doors""inside"0);
    }
    else if(
asTimer == "sound3")
    {
        
PlayGuiSound("16_grease_lever.snt"0.0f);
        
SetMessage("Doors""inside"0);
    }
    else if(
asTimer == "line")
    {
        
AddEffectVoice("hartlib_010.ogg""""Ch04Misc""hartlib10"true"SamuelVoice"020);
        
SetEffectVoiceOverCallback("HartlibLine11");
    }




RE: Sounds won't play - SilentStriker - 07-10-2012

Maybe cause the volume is at 0?


RE: Sounds won't play - Damascus - 07-10-2012

Oh my god.

I thought that was fade in time.

Brb, committing suicide.

(Thank you!)


RE: Sounds won't play - SilentStriker - 07-10-2012

Haha your welcome ^^