Skip to content

Commit ef2eb71

Browse files
committed
19 - Add Manuals and API Reference
1 parent 02c7547 commit ef2eb71

File tree

2 files changed

+40
-0
lines changed

2 files changed

+40
-0
lines changed
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: Trigger site rebuild
2+
3+
on: [push]
4+
5+
jobs:
6+
site-rebuild:
7+
runs-on: ubuntu-latest
8+
9+
steps: [
10+
{
11+
name: 'Repository dispatch',
12+
uses: defold/[email protected],
13+
with: {
14+
repo: 'defold/defold.github.io',
15+
token: '${{ secrets.SERVICES_GITHUB_TOKEN }}',
16+
17+
action: 'extension-fmod'
18+
}
19+
}]

docs/index.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
---
2+
title: Defold FMOD extension API documentation
3+
brief: This manual covers how to integrate a game with the FMOD Studio.
4+
---
5+
6+
# Defold FMOD extension API documentation
7+
8+
This extension provides an interface to integrate a game with the adaptive audio engine FMOD Studio.
9+
10+
## Load banks
11+
```lua
12+
fmod.studio.system:load_bank_memory(resource.load("/banks/Master Bank.bank"), fmod.STUDIO_LOAD_BANK_NORMAL)
13+
fmod.studio.system:load_bank_memory(resource.load("/banks/Master Bank.strings.bank"), fmod.STUDIO_LOAD_BANK_NORMAL)
14+
fmod.studio.system:load_bank_memory(resource.load("/banks/Vehicles.bank"), fmod.STUDIO_LOAD_BANK_NORMAL)
15+
16+
local event_description = fmod.studio.system:get_event("event:/Vehicles/Basic Engine")
17+
local event = event_description:create_instance()
18+
event:start()
19+
```
20+
21+
(...)

0 commit comments

Comments
 (0)