You can update the following code:
In Wwise\Source\AkAudio\Classes\InterpTrackAkAudioEvent.h
USTRUCT(BlueprintType)
struct FAkAudioEventTrackKey
In Wwise\Source\AudiokineticTools\Private\MovieSceneAkAudioEventTrackEditor.cpp
FKeyPropertyResult FMovieSceneAkAudioEventTrackEditor::AddNewMasterSound(float KeyTime, UAkAudioEvent* Event)
{
FKeyPropertyResult KeyPropertyResult;
auto TrackResult = FindOrCreateMasterTrack<UMovieSceneAkAudioEventTrack>();
TrackResult.Track->SetIsAMasterTrack(true);
TrackResult.Track->AddNewEvent(KeyTime, Event);
KeyPropertyResult.bTrackModified = true;
return KeyPropertyResult;
}
FKeyPropertyResult FMovieSceneAkAudioEventTrackEditor::AddNewAttachedSound(float KeyTime, UAkAudioEvent* Event, TArray<TWeakObjectPtr<UObject>> ObjectsToAttachTo)
{
FKeyPropertyResult KeyPropertyResult;
for (int32 ObjectIndex = 0; ObjectIndex < ObjectsToAttachTo.Num(); ++ObjectIndex)
{
UObject* Object = ObjectsToAttachTo[ObjectIndex].Get();
FFindOrCreateHandleResult HandleResult = FindOrCreateHandleToObject(Object);
FGuid ObjectHandle = HandleResult.Handle;
KeyPropertyResult.bHandleCreated |= HandleResult.bWasCreated;
if (ObjectHandle.IsValid())
{
FFindOrCreateTrackResult TrackResult = FindOrCreateTrackForObject(ObjectHandle, UMovieSceneAkAudioEventTrack::StaticClass());
KeyPropertyResult.bTrackCreated |= TrackResult.bWasCreated;
if (ensure(TrackResult.Track))
{
auto AudioTrack = Cast<UMovieSceneAkAudioEventTrack>(TrackResult.Track);
AudioTrack->AddNewEvent(KeyTime, Event);
KeyPropertyResult.bTrackModified = true;
}
}
}
return KeyPropertyResult;
}
In Wwise\Source\AudiokineticTools\Private\MovieSceneAkAudioEventTrackEditor.h
protected:
/** Delegate for AnimatablePropertyChanged in HandleAssetAdded for master sounds */
FKeyPropertyResult AddNewMasterSound(float KeyTime, UAkAudioEvent* Event);
/** Delegate for AnimatablePropertyChanged in HandleAssetAdded for attached sounds */
FKeyPropertyResult AddNewAttachedSound(float KeyTime, UAkAudioEvent* Event, TArray<TWeakObjectPtr<UObject>> ObjectsToAttachTo);
You can also fix some warnings