76 #define DISTANCE_SILENT 255
96 const std::chrono::milliseconds& loop_ticks,
97 const std::chrono::milliseconds& fadein_ticks);
A config object defines a single node in a WML file, with access to child nodes.
void handle_event(const SDL_Event &) override
void handle_window_event(const SDL_Event &event) override
Audio output for sound and music.
void write_music_play_list(config &snapshot)
void set_bell_volume(int vol)
void play_sound(const std::string &files, channel_group group, unsigned int repeats)
void play_music_config(const config &music_node, bool allow_interrupt_current_track, int i)
void remove_track(unsigned int i)
void play_music_repeatedly(const std::string &id)
unsigned int get_num_tracks()
void play_music_once(const std::string &file)
void play_sound_positioned(const std::string &files, int id, int repeats, unsigned int distance)
utils::optional< unsigned int > get_current_track_index()
std::vector< std::string > enumerate_drivers()
bool is_sound_playing(int id)
void reposition_sound(int id, unsigned int distance)
void play_timer(const std::string &files, const std::chrono::milliseconds &loop_ticks, const std::chrono::milliseconds &fadein_ticks)
void commit_music_changes()
void play_track(unsigned int i)
void play_UI_sound(const std::string &files)
void set_previous_track(std::shared_ptr< music_track > track)
std::shared_ptr< music_track > get_previous_music_track()
void set_music_volume(int vol)
std::shared_ptr< music_track > get_current_track()
std::string current_driver()
void set_UI_volume(int vol)
void set_sound_volume(int vol)
void play_bell(const std::string &files)
static driver_status query()