Data hosted with ♥ by Pastebin.com - Download Raw - See Original
  1. #include "CoreMinimal.h"
  2. #include "Components/SceneComponent.h"
  3. #include "Runtime/Engine/Classes/Sound/SoundWave.h"
  4. #include "IntelSoundComponent.generated.h"
  5.  
  6.  
  7.  
  8. UCLASS( ClassGroup=(Custom), meta=(BlueprintSpawnableComponent) )
  9. class INTEL_VR_AUDIO_TOOLS_API UIntelSoundComponent : public USceneComponent
  10. {
  11.     GENERATED_BODY()
  12.  
  13.  
  14. public:
  15.     // Sets default values for this component's properties
  16.     UIntelSoundComponent();
  17.    
  18.     //Blueprint function to expose soundFiles into blueprint.
  19.     UFUNCTION(BlueprintCallable, Category = IntelAudio)
  20.         void soundArray(TArray<FString> &soundFileArray);
  21.  
  22.     //Blueprint function passing a wav converted in USoundwave into blueprint.
  23.     UFUNCTION(Category = IntelAudio, BlueprintCallable)
  24.         USoundWave* setWavToSoundWave(const FString &fileName);