Sound Action Issue
We're hitting an issue in the player builds related to audio. We've got a custom callback for Noesis.GUI.SetPlayAudioCallback(...). When users alt-tab out of the application, it seems like Noesis stops firing any of the sound actions and our callback isn't triggered.. but when the user brings the app back to the foreground, all the actions fire at once.
Are we doing something wrong? Or is there a workaround for this?
thanks,
sam
Are we doing something wrong? Or is there a workaround for this?
thanks,
sam
-
sfernandez
Site Admin
- Posts: 2991
- Joined:
Re: Sound Action Issue
What triggers the PlaySoundAction?
If it is something related to focus, when application is deactivated our NoesisView component is deactivating the View, so focus changes do nothing and the last focused element is just restored when view gets activated again. So only one focus change should occur and one sound played.
Is view being Updated while application is in the background?
What happens with view Update when application is brought to the foreground again?
By default we just respond to Unity LateUpdate message when Unity decides to call us.
If it is something related to focus, when application is deactivated our NoesisView component is deactivating the View, so focus changes do nothing and the last focused element is just restored when view gets activated again. So only one focus change should occur and one sound played.
Is view being Updated while application is in the background?
What happens with view Update when application is brought to the foreground again?
By default we just respond to Unity LateUpdate message when Unity decides to call us.
Re: Sound Action Issue
They are almost all triggered by changes in data. For example, a cool down expires and the UI is triggering a PlaySoundAction when they cool down hits 0.
I believe we are updating teh view while it's in the background, but I'll verify. When we bring the application back to the foreground everything in the UI looks fine..
sam
I believe we are updating teh view while it's in the background, but I'll verify. When we bring the application back to the foreground everything in the UI looks fine..
sam
Re: Sound Action Issue
Looking at this more, it seems like something is broken in wwise...
thanks,
sam
thanks,
sam
Who is online
Users browsing this forum: Ahrefs [Bot], Bing [Bot] and 33 guests