Stopping Lantern Sound ? - 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: Stopping Lantern Sound ? (/thread-54584.html) |
Stopping Lantern Sound ? - Darkfire - 09-03-2018 Hello, hopefully someone will read this I need to silence the On/Off Lantern sound. What I suspect is that it is very much possible using StopSound. For that, however, I need the sound's internal name - not the .ogg name which is listed in the game.cfg file (ui_lantern_on etc) So, do you have any ideas how to find that name ? I tried "Show sounds playing" in the debug menu, but it only shows the .ogg name. Maybe there's a way to get it from the game's engine ? But where would that be ? RE: Stopping Lantern Sound ? - Luis - 09-06-2018 That should be the actual name (there's no internal name besides the one showing on the "show sounds playing" info). How are you trying to stop these? RE: Stopping Lantern Sound ? - Mudbill - 09-06-2018 I think Darkfire tried that. The "Show sounds playing" seems to display the filename for whatever sound is played rather than the internal names. StopSound won't work with that, no? RE: Stopping Lantern Sound ? - Darkfire - 09-16-2018 Yes, that's what I did: Code: StopSound("ui_lantern_off", 0.0f); If I recall correctly, I used that code in SetLanternLitCallback. When I think about it, maybe a looping timer might help, but... Code: StopSound(string& asSoundName, float afFadeTime); So if the UI sounds don't have such names, what I'm trying to achieve might be impossible ¯\_(ツ)_/¯ PS. I was trying to refer to .snt, not .ogg, in the previous post |