// The settings menu's sounds, from the game's own interface sounds (menu_sound.c). #pragma once #include #ifdef __cplusplus extern "C" { #endif typedef enum { MENU_SOUND_OPEN, MENU_SOUND_CLOSE, MENU_SOUND_CURSOR, MENU_SOUND_DECIDE, MENU_SOUND_CANCEL, MENU_SOUND_TAB_LEFT, MENU_SOUND_TAB_RIGHT, MENU_SOUND_COUNT } MenuSound; void menu_sound_play(MenuSound id); // menu thread void menu_sound_preload(void); // decodes the sounds now (the first play does it otherwise) // Audio thread: adds the playing sounds to frames of interleaved float output (channels 0 and 1 get them). void menu_sound_mix(float *out, uint32_t frames, int channels, int rate); #ifdef __cplusplus } #endif