From 52ec2b2a5b859534b68d3ec70112b63d9f6244aa Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Wed, 13 Sep 2023 21:10:08 +0200 Subject: [PATCH] - listsounds CCMD --- src/common/audio/sound/s_sound.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/common/audio/sound/s_sound.cpp b/src/common/audio/sound/s_sound.cpp index f2c44a1c1..58e4a981f 100644 --- a/src/common/audio/sound/s_sound.cpp +++ b/src/common/audio/sound/s_sound.cpp @@ -1856,6 +1856,15 @@ CCMD(snd_listdrivers) GSnd->PrintDriversList(); } +CCMD(listsounds) +{ + for (unsigned i = 1; i < soundEngine->GetNumSounds(); i++) + { + auto S_sfx = soundEngine->GetSfx(FSoundID::fromInt(i)); + Printf("%04d: %s\n", i, S_sfx->name.GetChars()); + } +} + ADD_STAT(sound) { return GSnd->GatherStats();