Skip to content

Commit

Permalink
Doc modification + usage example for AddJingle (#53)
Browse files Browse the repository at this point in the history
  • Loading branch information
Rafiss92 authored Oct 28, 2024
1 parent 73df608 commit 8c5ef44
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion docs/docs/user-guide/transitions/jingle.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,19 @@ BassMusic_AddJingle(
);
```

Only one Jingle can be configured for (theme, filter) pair, but you can have multiple Jingles with different filters.
Only one Jingle can be configured for (theme, filter) pair, but you can have multiple Jingles with different filters.

You can use that function for example inside `INIT_GLOBAL()` function in `Startup.d` file.

```dae
func void BassMusic_Init()
{
BassMusic_AddJingle("MyThemeToTransition", "OC_DAY_STD", "JingleFile.wav", 1.0);
};

func void INIT_GLOBAL()
{
// ...
BassMusic_Init();
};
```

0 comments on commit 8c5ef44

Please sign in to comment.