add a warning when there is more than one audio listener enabled

checks every time a listener gets enabled
This commit is contained in:
xxSeys1
2024-06-15 19:40:23 +02:00
parent f52059522b
commit a05fe5ce9b

View File

@@ -158,6 +158,9 @@ void Audio::OnAddListener(AudioListener* listener)
return;
}
if (Audio::Listeners.Count() > 0)
LOG(Warning, "There is more than 1 Audio listener active. Please make sure only exactly one is active at any given time.");
Listeners.Add(listener);
AudioBackend::Listener::OnAdd(listener);
}