development:csdk:2.0:headers:music
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
development:csdk:2.0:headers:music [2024/11/16 04:41] – created clyde | development:csdk:2.0:headers:music [2024/11/20 21:14] (current) – clyde | ||
---|---|---|---|
Line 5: | Line 5: | ||
void init_music(); | void init_music(); | ||
</ | </ | ||
+ | This should only need to be called once, after '' | ||
==== play_song ==== | ==== play_song ==== | ||
<code C> | <code C> | ||
void play_song(const unsigned char* song, char bank_num, char loop); | void play_song(const unsigned char* song, char bank_num, char loop); | ||
</ | </ | ||
+ | '' | ||
+ | |||
+ | '' | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
==== tick_music ==== | ==== tick_music ==== | ||
<code C> | <code C> | ||
char tick_music(); | char tick_music(); | ||
</ | </ | ||
- | ==== do_noise_effect | + | Call this once per frame, ideally shortly after '' |
+ | ==== play_sound_effect | ||
<code C> | <code C> | ||
- | void do_noise_effect(char note, char bend, char duration); | + | void play_sound_effect(char sfx_id, char channel); |
- | </ | + | |
- | ==== do_tone_effect ==== | + | |
- | <code C> | + | |
- | void do_tone_effect(char channel, char note, char bend, char duration); | + | |
</ | </ | ||
+ | '' | ||
+ | |||
+ | '' | ||
+ | The channel used is the lower two bytes of '' | ||
==== stop_music ==== | ==== stop_music ==== | ||
<code C> | <code C> |
development/csdk/2.0/headers/music.1731732079.txt.gz · Last modified: 2024/11/16 04:41 by clyde