DRG-Femboy-Voice/Source/FSD/Public/AudioFunctionLibrary.h
2025-04-15 12:39:31 -07:00

25 lines
689 B
C++
Executable file

#pragma once
#include "CoreMinimal.h"
#include "Kismet/BlueprintFunctionLibrary.h"
#include "AudioFunctionLibrary.generated.h"
class UObject;
class USoundClass;
class USoundMix;
UCLASS(Blueprintable)
class UAudioFunctionLibrary : public UBlueprintFunctionLibrary {
GENERATED_BODY()
public:
UAudioFunctionLibrary();
UFUNCTION(BlueprintCallable)
static float SetSoundClassVolume(USoundClass* SoundClass, float Volume);
UFUNCTION(BlueprintCallable)
static void PushTimedSoundMix(UObject* contextObject, USoundMix* mix, float Duration);
UFUNCTION(BlueprintCallable, BlueprintPure)
static float GetSoundClassVolume(USoundClass* SoundClass);
};