samc
Topic Author
Posts: 74
Joined: 21 Aug 2019, 19:22

Sound Action Issue

15 Jan 2021, 22:33

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
 
User avatar
sfernandez
Site Admin
Posts: 2991
Joined: 22 Dec 2011, 19:20

Re: Sound Action Issue

18 Jan 2021, 15:56

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.
 
samc
Topic Author
Posts: 74
Joined: 21 Aug 2019, 19:22

Re: Sound Action Issue

18 Jan 2021, 18:59

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
 
samc
Topic Author
Posts: 74
Joined: 21 Aug 2019, 19:22

Re: Sound Action Issue

18 Jan 2021, 19:31

Looking at this more, it seems like something is broken in wwise...

thanks,
sam

Who is online

Users browsing this forum: Ahrefs [Bot], Bing [Bot] and 33 guests