Sound: change option --sound-show-all to --sound-type

This commit is contained in:
李通洲
2023-01-31 21:12:47 +08:00
parent 7132762c9c
commit 00e044c431
5 changed files with 25 additions and 7 deletions
+6 -2
View File
@@ -40,8 +40,12 @@ static void printSound(FFinstance* instance, FFlist* devices)
FF_LIST_FOR_EACH(FFSoundDevice, device, *devices)
{
if(!device->active && !instance->config.soundShowAll)
continue;
switch (instance->config.soundType)
{
case FF_SOUND_TYPE_MAIN: if (!device->main) continue; break;
case FF_SOUND_TYPE_ACTIVE: if (!device->active) continue; break;
case FF_SOUND_TYPE_ALL: break;
}
*(FFSoundDevice**)ffListAdd(&filtered) = device;
}