sound.hpp File Reference

#include <string>
#include <vector>
#include "config.hpp"
#include "events.hpp"

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.

Namespaces

namespace  sound

Classes

class  sound::music_thinker

Defines

#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)
void sound::commit_music_changes ()
void sound::play_music_repeatedly (const std::string &name)
void sound::play_music_once (const std::string &file)
void sound::play_no_music ()
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)


Define Documentation

#define DISTANCE_SILENT   255


Generated by doxygen 1.5.5 on 23 May 2008 for The Battle for Wesnoth
Gna! | Forum | Wiki | CIA | devdocs