AkAudioSession.h 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  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 "Engine/EngineTypes.h"
  17. #include "UObject/Object.h"
  18. #include "AkInclude.h"
  19. #include "AkAudioSession.generated.h"
  20. UENUM()
  21. enum class EAkAudioSessionCategory
  22. {
  23. Ambient,
  24. SoloAmbient,
  25. PlayAndRecord,
  26. };
  27. UENUM(Meta = (Bitmask))
  28. enum class EAkAudioSessionCategoryOptions : uint32
  29. {
  30. MixWithOthers,
  31. DuckOthers,
  32. AllowBluetooth,
  33. DefaultToSpeaker,
  34. };
  35. UENUM()
  36. enum class EAkAudioSessionMode
  37. {
  38. Default,
  39. VoiceChat,
  40. GameChat,
  41. VideoRecording,
  42. Measurement,
  43. MoviePlayback,
  44. VideoChat,
  45. };
  46. struct FAkInitializationStructure;
  47. USTRUCT()
  48. struct FAkAudioSession
  49. {
  50. GENERATED_BODY()
  51. UPROPERTY(Config, Category = "Ak Initialization Settings|Audio Session", EditAnywhere, meta = (ToolTip = "The IDs of the iOS audio session categories, useful for defining app-level audio behaviours such as inter-app audio mixing policies and audio routing behaviours.These IDs are functionally equivalent to the corresponding constants defined by the iOS audio session service back-end (AVAudioSession). Refer to Xcode documentation for details on the audio session categories."))
  52. EAkAudioSessionCategory AudioSessionCategory = EAkAudioSessionCategory::Ambient;
  53. UPROPERTY(Config, Category = "Ak Initialization Settings|Audio Session", EditAnywhere, meta = (Bitmask, BitmaskEnum = "/Script/AkAudio.EAkAudioSessionCategoryOptions", ToolTip = "The IDs of the iOS audio session category options, used for customizing the audio session category features. These IDs are functionally equivalent to the corresponding constants defined by the iOS audio session service back-end (AVAudioSession). Refer to Xcode documentation for details on the audio session category options."))
  54. uint32 AudioSessionCategoryOptions = 1 << (uint32)EAkAudioSessionCategoryOptions::DuckOthers;
  55. UPROPERTY(Config, Category = "Ak Initialization Settings|Audio Session", EditAnywhere, meta = (ToolTip = "The IDs of the iOS audio session modes, used for customizing the audio session for typical app types. These IDs are functionally equivalent to the corresponding constants defined by the iOS audio session service back-end (AVAudioSession). Refer to Xcode documentation for details on the audio session category options."))
  56. EAkAudioSessionMode AudioSessionMode = EAkAudioSessionMode::Default;
  57. void FillInitializationStructure(FAkInitializationStructure& InitializationStructure) const;
  58. };