From a7d6557ec1694986c9aafdea53412df1f0b6f2dc Mon Sep 17 00:00:00 2001 From: Rafiss92 Date: Wed, 23 Oct 2024 23:30:27 +0200 Subject: [PATCH] Doc modification + usage example for AddJingle --- docs/docs/user-guide/transitions/jingle.md | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/docs/docs/user-guide/transitions/jingle.md b/docs/docs/user-guide/transitions/jingle.md index 515dc2e..6e72759 100644 --- a/docs/docs/user-guide/transitions/jingle.md +++ b/docs/docs/user-guide/transitions/jingle.md @@ -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. \ No newline at end of file +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(); +}; +``` \ No newline at end of file