mirror of
https://github.com/ZDoom/gzdoom.git
synced 2025-02-16 17:21:10 +00:00
- listsounds CCMD
This commit is contained in:
parent
0980b53881
commit
52ec2b2a5b
1 changed files with 9 additions and 0 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue