MovieSceneAkAudioEventTrack.h 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  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. #if UE_4_26_OR_LATER
  21. #include "Compilation/IMovieSceneTrackTemplateProducer.h"
  22. #else
  23. #include "MovieSceneBackwardsCompatibility.h"
  24. #endif
  25. #include "MovieSceneAkAudioEventTrack.generated.h"
  26. class UMovieSceneAkAudioEventSection;
  27. UCLASS(MinimalAPI)
  28. class UMovieSceneAkAudioEventTrack
  29. : public UMovieSceneAkTrack
  30. , public IMovieSceneTrackTemplateProducer
  31. {
  32. GENERATED_BODY()
  33. public:
  34. UMovieSceneAkAudioEventTrack()
  35. {
  36. #if WITH_EDITORONLY_DATA
  37. SetColorTint(FColor(0, 156, 255, 65));
  38. #endif
  39. }
  40. AKAUDIO_API virtual UMovieSceneSection* CreateNewSection() override;
  41. virtual bool SupportsMultipleRows() const override { return true; }
  42. virtual bool SupportsType(TSubclassOf<UMovieSceneSection> SectionClass) const override;
  43. AKAUDIO_API virtual FName GetTrackName() const override;
  44. #if WITH_EDITORONLY_DATA
  45. AKAUDIO_API virtual FText GetDisplayName() const override;
  46. #endif
  47. #if WITH_EDITOR
  48. AKAUDIO_API bool AddNewEvent(FFrameNumber Time, UAkAudioEvent* Event, const FString& EventName = FString());
  49. void WorkUnitChangesDetectedFromSection(UMovieSceneAkAudioEventSection* in_pSection);
  50. #endif
  51. protected:
  52. AKAUDIO_API virtual FMovieSceneEvalTemplatePtr CreateTemplateForSection(const UMovieSceneSection& InSection) const override;
  53. };