- listsounds CCMD

This commit is contained in:
Christoph Oelckers 2023-09-13 21:10:08 +02:00
parent 0980b53881
commit 52ec2b2a5b

View file

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