development:csdk:2.0:headers:music
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| development:csdk:2.0:headers:music [2024/11/20 21:13] – clyde | development:csdk:2.0:headers:music [2026/09/16 23:36] (current) – [play_sound_effect] 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> | ||
| Line 19: | Line 20: | ||
| char tick_music(); | char tick_music(); | ||
| </ | </ | ||
| + | Call this once per frame, ideally shortly after '' | ||
| ==== play_sound_effect ==== | ==== play_sound_effect ==== | ||
| <code C> | <code C> | ||
| Line 26: | Line 28: | ||
| '' | '' | ||
| - | The channel used is the lower two bytes of '' | + | The channel used is the lower two bits of '' |
| ==== stop_music ==== | ==== stop_music ==== | ||
| <code C> | <code C> | ||
development/csdk/2.0/headers/music.1732137186.txt.gz · Last modified: 2024/11/20 21:13 by clyde
