AudioMixerInputComponent.h 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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 "CoreMinimal.h"
  17. #include "AkInclude.h"
  18. #include "AkAudioInputManager.h"
  19. // FIXME Rename this class
  20. class FAudioMixerInputComponent
  21. {
  22. public:
  23. FAudioMixerInputComponent();
  24. ~FAudioMixerInputComponent();
  25. bool FillSamplesBuffer(uint32 NumChannels, uint32 NumSamples, float** BufferToFill);
  26. /** This callback is used to provide the Wwise sound engine with the required audio format. */
  27. void GetChannelConfig(AkAudioFormat& OutAudioFormat);
  28. AkPlayingID PostAssociatedAudioInputEvent(class UAkAudioEvent* InputEvent);
  29. void PostUnregisterGameObject();
  30. FAkGlobalAudioInputDelegate OnNextBuffer;
  31. private:
  32. AkGameObjectID GetAkGameObjectID() const;
  33. AkPlayingID PlayingID;
  34. };