AWC audio name hash resolution and sorting

This commit is contained in:
dexy
2020-02-09 07:26:18 +11:00
Unverified
parent cdda4b943e
commit 81c2361013
3 changed files with 93 additions and 21 deletions
+4 -1
View File
@@ -7,6 +7,7 @@ using System.IO;
using System.Diagnostics;
using System.Windows.Forms;
using System.Drawing;
using System.Linq;
namespace CodeWalker.Forms
{
@@ -114,7 +115,9 @@ namespace CodeWalker.Forms
float totalLength = 0;
if (awc.Streams != null)
{
foreach (var audio in awc.Streams)
var strlist = awc.Streams.ToList();
strlist.Sort((a, b) => a.Name.CompareTo(b.Name));
foreach (var audio in strlist)
{
if (audio.StreamBlocks != null) continue;//don't display multichannel source audios
var item = PlayListView.Items.Add(audio.Name);