MovieSceneAkAudioEventTrack.h 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. /*******************************************************************************
  2. The content of this file includes portions of the proprietary AUDIOKINETIC Wwise
  3. Technology released in source code form as part of the game integration package.
  4. The content of this file may not be used without valid licenses to the
  5. AUDIOKINETIC Wwise Technology.
  6. Note that the use of the game engine is subject to the Unreal(R) Engine End User
  7. License Agreement at https://www.unrealengine.com/en-US/eula/unreal
  8. License Usage
  9. Licensees holding valid licenses to the AUDIOKINETIC Wwise Technology may use
  10. this file in accordance with the end user license agreement provided with the
  11. software or, alternatively, in accordance with the terms contained
  12. in a written agreement between you and Audiokinetic Inc.
  13. Copyright (c) 2023 Audiokinetic Inc.
  14. *******************************************************************************/
  15. #pragma once
  16. #include "MovieSceneAkTrack.h"
  17. #include "IMovieScenePlayer.h"
  18. #include "AkInclude.h"
  19. #include "AkAudioEvent.h"
  20. #include "WwiseUnrealDefines.h"
  21. #if UE_4_26_OR_LATER
  22. #include "Compilation/IMovieSceneTrackTemplateProducer.h"
  23. #else
  24. #include "MovieSceneBackwardsCompatibility.h"
  25. #endif
  26. #include "MovieSceneAkAudioEventTrack.generated.h"
  27. class UMovieSceneAkAudioEventSection;
  28. UCLASS(MinimalAPI)
  29. class UMovieSceneAkAudioEventTrack
  30. : public UMovieSceneAkTrack
  31. , public IMovieSceneTrackTemplateProducer
  32. {
  33. GENERATED_BODY()
  34. public:
  35. UMovieSceneAkAudioEventTrack()
  36. {
  37. #if WITH_EDITORONLY_DATA
  38. SetColorTint(FColor(0, 156, 255, 65));
  39. #endif
  40. }
  41. AKAUDIO_API virtual UMovieSceneSection* CreateNewSection() override;
  42. virtual bool SupportsMultipleRows() const override { return true; }
  43. virtual bool SupportsType(TSubclassOf<UMovieSceneSection> SectionClass) const override;
  44. AKAUDIO_API virtual FName GetTrackName() const override;
  45. #if WITH_EDITORONLY_DATA
  46. AKAUDIO_API virtual FText GetDisplayName() const override;
  47. #endif
  48. #if WITH_EDITOR
  49. AKAUDIO_API bool AddNewEvent(FFrameNumber Time, UAkAudioEvent* Event, const FString& EventName = FString());
  50. void WorkUnitChangesDetectedFromSection(UMovieSceneAkAudioEventSection* in_pSection);
  51. #endif
  52. protected:
  53. AKAUDIO_API virtual FMovieSceneEvalTemplatePtr CreateTemplateForSection(const UMovieSceneSection& InSection) const override;
  54. };