Frictional Games Forum (read-only)
Stop sound doesn't work - 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: Stop sound doesn't work (/thread-17139.html)



Stop sound doesn't work - ooadrianoo - 07-20-2012

I want to stop playing a sound:
Code:
StopSound("xxxxx.snt", 0);
But the sound doesn't stop...


RE: Stop sound doesn't work - Steve - 07-20-2012

Maybe a little more information would help... Confused


RE: Stop sound doesn't work - ooadrianoo - 07-20-2012

Code:
{SetEntityPlayerInteractCallback("lever_nice01_2", "x", true);}
void x(string &in asEntity)
{
StopSound("xxxxx", 0);
SetLevelDoorLocked("level_hub_1", false);  
}



RE: Stop sound doesn't work - JMFStorm - 07-20-2012

You don't put the file name.snt there, but the actual name you've put in PlaySoundAtEntity command (string& asSoundName).


RE: Stop sound doesn't work - ooadrianoo - 07-20-2012

Still doesn't work :S
In PlaySoundAtEntity is exactly the same name.


RE: Stop sound doesn't work - Your Computer - 07-20-2012

Show us more code. Don't have us assume things that is in contradiction of the issue.