25 lines
689 B
C++
Executable file
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);
|
|
|
|
};
|
|
|