Skip to content
Snippets Groups Projects
Commit 52a5f554 authored by Philipp Schäfer's avatar Philipp Schäfer
Browse files

Adding methods to get source and receiver IDs

parent 6a51e1af
No related branches found
No related tags found
No related merge requests found
...@@ -501,6 +501,15 @@ bool UVAAbstractSourceComponent::GetVisibility() const ...@@ -501,6 +501,15 @@ bool UVAAbstractSourceComponent::GetVisibility() const
return SoundSource->GetVisibility(); return SoundSource->GetVisibility();
} }
int UVAAbstractSourceComponent::GetSoundSourceID() const
{
if (!SoundSource)
{
return -1;
}
return SoundSource->GetSoundSourceID();
}
bool UVAAbstractSourceComponent::SetBoneName(const FString NewBoneName) bool UVAAbstractSourceComponent::SetBoneName(const FString NewBoneName)
{ {
if (!FVAPlugin::GetUseVA()) if (!FVAPlugin::GetUseVA())
......
...@@ -413,6 +413,11 @@ UVAAuralizationModeController* AVAReceiverActor::GetAuralizationModeController() ...@@ -413,6 +413,11 @@ UVAAuralizationModeController* AVAReceiverActor::GetAuralizationModeController()
return AuralizationModeController; return AuralizationModeController;
} }
int AVAReceiverActor::GetReceiverID() const
{
return ReceiverID;
}
int AVAReceiverActor::GetUpdateRate() const int AVAReceiverActor::GetUpdateRate() const
{ {
return UpdateRate; return UpdateRate;
......
...@@ -164,6 +164,9 @@ public: ...@@ -164,6 +164,9 @@ public:
UFUNCTION(BlueprintCallable) UFUNCTION(BlueprintCallable)
bool GetVisibility() const; bool GetVisibility() const;
//Returns the ID of the VA sound source
int GetSoundSourceID() const;
protected: protected:
......
...@@ -130,6 +130,9 @@ public: ...@@ -130,6 +130,9 @@ public:
UFUNCTION(BlueprintCallable) UFUNCTION(BlueprintCallable)
UVAAuralizationModeController* GetAuralizationModeController() const; UVAAuralizationModeController* GetAuralizationModeController() const;
//Returns the VA receiver ID
int GetReceiverID() const;
protected: protected:
// Get Walls // Get Walls
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment