Comments (2)
I might understand what the issue here is. It's related to how FMOD works, every time you call an FMOD method, it's not immediately executed. Instead, the commands are batched and only run when you call the Fmod update function in the C++ code. That function usually is automatically called by the FMOD singleton in the _process method.
Basically, FMOD is updated at the same time Godot is. Now the issue is when you tap home on android, you likely have the pause_all_events() called, but update() is never called because Godot itself just paused. It's probably the reason why the events stop only when you reopen the application because only at this moment your command is run.
To fix that I think you have to make sure Fmod._process()
is called AFTER you call Fmod.pause_all_events()
.
from fmod-gdextension.
Thank you very much, I added Fmod.process(delta) in my OnFocusOut function and problem is solved.
func OnFocusOut():
Fmod.pause_all_events(true)
Fmod._process(_delta)
from fmod-gdextension.
Related Issues (20)
- Explore gdUnit4 as a replacement for GUT HOT 1
- Stability of fmod-gdnative for smaller / quick-turnaround projects? HOT 3
- Expose performance data as Godot monitor HOT 1
- FMOD not running on Linux HOT 3
- Why the artificial event limit? MAX_EVENT_COUNT 256 HOT 5
- Addon crashes when changing scenes (Godot 4 only) HOT 1
- Godot sometimes freezes when an Fmod event is created HOT 6
- Unable to load addon script from path HOT 1
- Unable to acces banks. HOT 3
- Bank explorer does not refresh when updating .bank file HOT 1
- Improve loading events by name vs. guid
- "Unable to load addon script from path" when working with Version control HOT 2
- Various script errors when building HOT 8
- Is there a way to set an FMOD event parameter by label HOT 3
- FmodEventEmitter3D only sets local position in Fmod
- 3D directional audio is backwards
- Godot 4.2 - Could not find type "FmodNative" HOT 4
- Missing Info.plist for MacOS frameworks
- Silent crash when using low level api for playing one shots on Linux HOT 1
- Bug Report: Plugin does not work in Android Debug Builds
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fmod-gdextension.