mirror of
https://github.com/4sval/FModel.git
synced 2026-04-22 17:47:51 -05:00
Music Track/Segment
This commit is contained in:
parent
adc19388c9
commit
c5e78e7ba7
|
|
@ -895,10 +895,20 @@ public class CUE4ParseViewModel : ViewModel
|
|||
|
||||
switch (hierarchy.Data)
|
||||
{
|
||||
case HierarchySoundSfxVoice soundSfx:
|
||||
SaveWemSound(soundSfx);
|
||||
break;
|
||||
|
||||
case HierarchySoundSfxVoice soundSfx:
|
||||
SaveWemSound(soundSfx.SourceId);
|
||||
break;
|
||||
|
||||
case HierarchyMusicTrack musicTrack:
|
||||
foreach (var playlist in musicTrack.Playlist)
|
||||
SaveWemSound((uint) playlist.SourceID);
|
||||
break;
|
||||
|
||||
case HierarchyMusicSegment musicSegment:
|
||||
foreach (var childId in musicSegment.ChildIDs)
|
||||
TraverseAndSave(childId);
|
||||
break;
|
||||
|
||||
case HierarchyRandomSequenceContainer randomContainer:
|
||||
foreach (var childId in randomContainer.ChildIDs)
|
||||
TraverseAndSave(childId);
|
||||
|
|
@ -916,9 +926,8 @@ public class CUE4ParseViewModel : ViewModel
|
|||
}
|
||||
}
|
||||
|
||||
void SaveWemSound(HierarchySoundSfxVoice soundSfx)
|
||||
void SaveWemSound(uint wemId)
|
||||
{
|
||||
var wemId = soundSfx.SourceId;
|
||||
if (wwiseReader.WwiseEncodedMedias.TryGetValue(wemId.ToString(), out var wemData))
|
||||
{
|
||||
var debugName = kvp.Value.Value.DebugName.ToString();
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user