Coder Social home page Coder Social logo

Comments (2)

ak-slongchamps avatar ak-slongchamps commented on June 23, 2024 1

Thank you for this investigation!

focus in/out behavior is quite restrictive, particularly when connected to and interacting with the authoring app.

Definitely agree here: it's a lot less useful to bind this on focus instead of minimize-restore state, but without the notification I understand that's the best you can do. It doesn't look too hard to add it in Godot, hopefully this is something that gets added eventually!

from wwise-godot-integration.

alessandrofama avatar alessandrofama commented on June 23, 2024

I've explored this during the update to Godot 4.2, which finally allowed the addition of Android support, enabling me to test its behavior on that platform.

I also observed that the focus in/out behavior is quite restrictive, particularly when connected to and interacting with the authoring app.
For desktop platforms, I've introduced a suspend_on_focus_loss setting that users can activate in the Project Settings. When activated, NOTIFICATION_APPLICATION_FOCUS_OUT and NOTIFICATION_APPLICATION_FOCUS_IN will trigger calls to AK::SoundEngine::Suspend and AK::SoundEngine::WakeupFromSuspend, respectively.

This setting provides the option to customize the suspend behavior in the editor for both debug and release builds.
If deactivated, users still have the possibility to control the behavior themselves, either by calling suspend and wakeup_from_suspend in the Wwise singleton, or by calling pause and resume in the WwiseRuntimeManager.

On Android, the suspend and wakeup functions will be called by default on NOTIFICATION_APPLICATION_PAUSED and NOTIFICATION_APPLICATION_UNPAUSED (currently only implemented on Android).

When looking at Godot's windows display server, I can't find any notification handling for window minimize and restore. This is something I can investigate with the Godot community in the future.

from wwise-godot-integration.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.