Audio explorer progress

This commit is contained in:
dexy 2022-01-16 20:30:50 +11:00
parent 80d175624f
commit f669e62865
3 changed files with 1449 additions and 1375 deletions

File diff suppressed because it is too large Load Diff

View File

@ -193,6 +193,13 @@ namespace CodeWalker.Tools
node.Tag = item;
if ((item is Dat22Category) && (parentNode != null) && (!(parentNode.Tag is Dat22Category))) //don't bother expanding out categories, too spammy!
{
return;
}
var speech = GetUniqueHashes(item.GetSpeechHashes(), item);
var synths = GetUniqueHashes(item.GetSynthHashes(), item);
var mixers = GetUniqueHashes(item.GetMixerHashes(), item);
@ -255,7 +262,22 @@ namespace CodeWalker.Tools
if (parentNode == null)
{
node.ExpandAll();
var totnodes = node.GetNodeCount(true);
if (totnodes > 100)
{
node.Expand();
foreach (TreeNode cnode in node.Nodes)
{
foreach (TreeNode ccnode in cnode.Nodes)
{
ccnode.ExpandAll();
}
}
}
else
{
node.ExpandAll();
}
HierarchyTreeView.SelectedNode = node;
}

View File

@ -1433,7 +1433,7 @@ namespace CodeWalker.World
var streaminfs = new List<Dat54SimpleSound>();
var streamlist = new List<AwcStream>();
foreach (var chan in strsnd.AudioTracks)
foreach (var chan in strsnd.ChildSounds)
{
if (chan is Dat54SimpleSound chansnd)
{