Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jordi-star/fmod_gd4
FMOD integration for Godot 4
https://github.com/jordi-star/fmod_gd4
fmod fmod-api fmod-studio gd4 godot godot-4
Last synced: 6 days ago
JSON representation
FMOD integration for Godot 4
- Host: GitHub
- URL: https://github.com/jordi-star/fmod_gd4
- Owner: jordi-star
- License: mit
- Created: 2021-07-15T04:04:33.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-12-14T02:26:08.000Z (11 months ago)
- Last Synced: 2024-07-09T16:41:23.936Z (4 months ago)
- Topics: fmod, fmod-api, fmod-studio, gd4, godot, godot-4
- Language: C++
- Homepage:
- Size: 225 KB
- Stars: 49
- Watchers: 4
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-godot - FMOD GD4 - FMOD Studio API integration. (Modules / 3D)
README
# FMOD GD4 - Stable Branch
Godot 4.2 integration of FMOD. Not feature-complete yet.This branch targets the latest stable Godot release (4.2.x) and FMOD 2.02.
# Installation
1. Clone `godot` and switch to 4.2:
> `git clone https://github.com/godotengine/godot`
> `cd godot && git checkout tags/4.2-stable`
2. Clone `fmod_gd4` into Godot's `modules/` folder.
> `cd modules && git clone https://github.com/summertimejordi/fmod_gd4`
3. Download [FMOD Engine 2.02+](https://www.fmod.com/download#FMOD%20Engine-select)
4. Copy FMOD API folders to the `api` folder in the `fmod_gd4` module.
5. [Compile Godot](https://docs.godotengine.org/en/stable/development/compiling/introduction_to_the_buildsystem.html?highlight=compile)**Not done yet!**
Your newly built version of Godot will need to have the following libraries included in the same folder as it.Locate the libraries by navigating to the `api` folder you copied into the module path.
**You will need:**
The Fmod library located in `core/lib`, and the Fmod Studio library located in `studio/lib`.You'll see folders named after the architecture they're designed for. (x86 for 32-Bit, x64 for 64-bit, and arm for Mac Sillicon)
**On Windows:**
Copy `fmod.dll` and `fmodstudio.dll` to your Godot location. FMOD**On Mac and Linux:**
Copy `libfmod.so` and `libfmodstudio.so` to your Godot location.If you'd like to enable debugging/logging for FMOD, copy the FMOD libraries that end with a capital 'L'. These are the ***L***ogging releases of FMOD.
**This process can be confusing. Create an issue for further support!**
# Usage
* Configure FMOD by visting `Project Settings/Fmod`
* To add banks to be loaded, navigate to the bank in the FileSystem tab, and enable `Autoload` in the inspector.
* Create event instances using
```py
Fmod.create_event_instance(String event_path, bool autoplay, bool oneshot); # Returns FmodEventInstance
```
* Or:
```py
FmodEventInstance.create(String event_path);
```
```py
Fmod.play(String event_path); # Returns FmodEventInstance
```# Features:
- [x] Singleton and Autoinitialization
- [x] Playing events and loading banks
- [x] Get VCAs
- [x] Banks as resources
- [x] Editor cache of Master.strings to use for FmodEventInstance editor plugin
- [x] FmodEventInstance editor plugin