The Battle for Wesnoth  1.13.4+dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Classes | Namespaces | Macros | Enumerations | Functions
sound.hpp File Reference
#include "events.hpp"
#include <string>
Include dependency graph for sound.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  sound::music_thinker
 

Namespaces

 sound
 Audio output for sound and music.
 

Macros

#define DISTANCE_SILENT   255
 

Enumerations

enum  sound::channel_group {
  sound::NULL_CHANNEL = -1, sound::SOUND_SOURCES = 0, sound::SOUND_BELL, sound::SOUND_TIMER,
  sound::SOUND_UI, sound::SOUND_FX
}
 

Functions

bool sound::init_sound ()
 
void sound::close_sound ()
 
void sound::reset_sound ()
 
void sound::stop_music ()
 
void sound::stop_sound ()
 
void sound::stop_UI_sound ()
 
void sound::stop_bell ()
 
void sound::play_music_config (const config &music_node)
 
void sound::commit_music_changes ()
 
void sound::play_music_repeatedly (const std::string &id)
 
void sound::play_music_once (const std::string &file)
 
void sound::empty_playlist ()
 
void sound::play_music ()
 
void sound::reposition_sound (int id, unsigned int distance)
 
bool sound::is_sound_playing (int id)
 
void sound::stop_sound (int id)
 
void sound::play_sound (const std::string &files, channel_group group, unsigned int repeats)
 
void sound::play_sound_positioned (const std::string &files, int id, int repeats, unsigned int distance)
 
void sound::play_bell (const std::string &files)
 
void sound::play_timer (const std::string &files, int loop_ticks, int fadein_ticks)
 
void sound::play_UI_sound (const std::string &files)
 
void sound::write_music_play_list (config &snapshot)
 
void sound::set_music_volume (int vol)
 
void sound::set_sound_volume (int vol)
 
void sound::set_bell_volume (int vol)
 
void sound::set_UI_volume (int vol)
 

Macro Definition Documentation

#define DISTANCE_SILENT   255