Project Alice
Loading...
Searching...
No Matches
sound::sound_impl Class Reference

#include <sound_nix.hpp>

Collaboration diagram for sound::sound_impl:

Public Member Functions

 sound_impl ()
 
 ~sound_impl ()
 
void set_volume (std::optional< ma_sound > &sound, float volume)
 
void override_sound (std::optional< ma_sound > &sound, audio_instance &s, float volume)
 
void play_music (int32_t track, float volume)
 
void play_new_track (sys::state &ws)
 
void play_next_track (sys::state &ws)
 
void play_previous_track (sys::state &ws)
 
bool music_finished ()
 
void play_effect (audio_instance &s, float volume)
 
void play_interface_sound (audio_instance &s, float volume)
 
void play_music (int32_t track, float volume)
 
void pause_effect () const
 
void pause_interface_sound () const
 
void pause_music () const
 
void resume_effect () const
 
void resume_interface_sound () const
 
void resume_music () const
 
void change_effect_volume (float v) const
 
void change_interface_volume (float v) const
 
void change_music_volume (float v) const
 
bool music_finished () const
 
void play_new_track (sys::state &ws)
 
void play_next_track (sys::state &ws)
 
void play_previous_track (sys::state &ws)
 

Public Attributes

std::optional< ma_sound > effect_sound
 
std::optional< ma_sound > interface_sound
 
std::optional< ma_sound > music
 
ma_engine engine
 
bool global_pause = false
 
audio_instance click_sound
 
audio_instance click_left_sound
 
audio_instance click_right_sound
 
audio_instance tab_budget_sound
 
audio_instance hover_sound
 
audio_instance checkbox_sound
 
audio_instance enact_sound
 
audio_instance subtab_sound
 
audio_instance delete_sound
 
audio_instance autochoose_sound
 
audio_instance tab_politics_sound
 
audio_instance tab_diplomacy_sound
 
audio_instance tab_military_sound
 
audio_instance tab_population_sound
 
audio_instance tab_production_sound
 
audio_instance tab_technology_sound
 
audio_instance technology_finished_sound
 
audio_instance army_move_sound
 
audio_instance army_select_sound
 
audio_instance navy_move_sound
 
audio_instance navy_select_sound
 
audio_instance declaration_of_war_sound
 
audio_instance chat_message_sound
 
audio_instance error_sound
 
audio_instance peace_sound
 
audio_instance army_built_sound
 
audio_instance navy_built_sound
 
audio_instance factory_built_sound
 
audio_instance election_sound
 
audio_instance revolt_sound
 
audio_instance fort_built_sound
 
audio_instance railroad_built_sound
 
audio_instance naval_base_built_sound
 
audio_instance minor_event_sound
 
audio_instance major_event_sound
 
audio_instance decline_sound
 
audio_instance accept_sound
 
audio_instance diplomatic_request_sound
 
audio_instance console_open_sound
 
audio_instance console_close_sound
 
audio_instance land_battle_sounds [6]
 
audio_instance naval_battle_sounds [6]
 
audio_instance province_select_sounds [4]
 
audio_instance event_sound
 
audio_instance decision_sound
 
audio_instance pause_sound
 
audio_instance unpause_sound
 
std::vector< audio_instancemusic_list
 
int32_t last_music = -1
 
int32_t first_music = -1
 
int32_t current_music = -1
 
HWND window_handle = nullptr
 

Detailed Description

Definition at line 23 of file sound_nix.hpp.

Constructor & Destructor Documentation

◆ sound_impl()

sound::sound_impl::sound_impl ( )

Definition at line 18 of file sound_nix.cpp.

◆ ~sound_impl()

sound::sound_impl::~sound_impl ( )

Definition at line 24 of file sound_nix.cpp.

Member Function Documentation

◆ change_effect_volume()

void sound::sound_impl::change_effect_volume ( float  v) const

Definition at line 245 of file sound_win.cpp.

Here is the call graph for this function:

◆ change_interface_volume()

void sound::sound_impl::change_interface_volume ( float  v) const

Definition at line 250 of file sound_win.cpp.

Here is the call graph for this function:

◆ change_music_volume()

void sound::sound_impl::change_music_volume ( float  v) const

Definition at line 255 of file sound_win.cpp.

◆ music_finished() [1/2]

bool sound::sound_impl::music_finished ( )

Definition at line 78 of file sound_nix.cpp.

◆ music_finished() [2/2]

bool sound::sound_impl::music_finished ( ) const

Definition at line 188 of file sound_win.cpp.

◆ override_sound()

void sound::sound_impl::override_sound ( std::optional< ma_sound > &  sound,
audio_instance s,
float  volume 
)

Definition at line 34 of file sound_nix.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ pause_effect()

void sound::sound_impl::pause_effect ( ) const

Definition at line 262 of file sound_win.cpp.

Here is the call graph for this function:

◆ pause_interface_sound()

void sound::sound_impl::pause_interface_sound ( ) const

Definition at line 266 of file sound_win.cpp.

Here is the call graph for this function:

◆ pause_music()

void sound::sound_impl::pause_music ( ) const

Definition at line 270 of file sound_win.cpp.

◆ play_effect()

void sound::sound_impl::play_effect ( audio_instance s,
float  volume 
)

Definition at line 213 of file sound_win.cpp.

Here is the call graph for this function:

◆ play_interface_sound()

void sound::sound_impl::play_interface_sound ( audio_instance s,
float  volume 
)

Definition at line 223 of file sound_win.cpp.

Here is the call graph for this function:

◆ play_music() [1/2]

void sound::sound_impl::play_music ( int32_t  track,
float  volume 
)

Definition at line 48 of file sound_nix.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ play_music() [2/2]

void sound::sound_impl::play_music ( int32_t  track,
float  volume 
)

◆ play_new_track() [1/2]

void sound::sound_impl::play_new_track ( sys::state ws)

Definition at line 56 of file sound_nix.cpp.

Here is the call graph for this function:

◆ play_new_track() [2/2]

void sound::sound_impl::play_new_track ( sys::state ws)

◆ play_next_track() [1/2]

void sound::sound_impl::play_next_track ( sys::state ws)

Definition at line 65 of file sound_nix.cpp.

Here is the call graph for this function:

◆ play_next_track() [2/2]

void sound::sound_impl::play_next_track ( sys::state ws)

◆ play_previous_track() [1/2]

void sound::sound_impl::play_previous_track ( sys::state ws)

Definition at line 71 of file sound_nix.cpp.

Here is the call graph for this function:

◆ play_previous_track() [2/2]

void sound::sound_impl::play_previous_track ( sys::state ws)

◆ resume_effect()

void sound::sound_impl::resume_effect ( ) const

Definition at line 277 of file sound_win.cpp.

Here is the call graph for this function:

◆ resume_interface_sound()

void sound::sound_impl::resume_interface_sound ( ) const

Definition at line 281 of file sound_win.cpp.

Here is the call graph for this function:

◆ resume_music()

void sound::sound_impl::resume_music ( ) const

Definition at line 285 of file sound_win.cpp.

◆ set_volume()

void sound::sound_impl::set_volume ( std::optional< ma_sound > &  sound,
float  volume 
)

Definition at line 28 of file sound_nix.cpp.

Here is the caller graph for this function:

Member Data Documentation

◆ accept_sound

audio_instance sound::sound_impl::accept_sound

Definition at line 68 of file sound_nix.hpp.

◆ army_built_sound

audio_instance sound::sound_impl::army_built_sound

Definition at line 57 of file sound_nix.hpp.

◆ army_move_sound

audio_instance sound::sound_impl::army_move_sound

Definition at line 49 of file sound_nix.hpp.

◆ army_select_sound

audio_instance sound::sound_impl::army_select_sound

Definition at line 50 of file sound_nix.hpp.

◆ autochoose_sound

audio_instance sound::sound_impl::autochoose_sound

Definition at line 41 of file sound_nix.hpp.

◆ chat_message_sound

audio_instance sound::sound_impl::chat_message_sound

Definition at line 54 of file sound_nix.hpp.

◆ checkbox_sound

audio_instance sound::sound_impl::checkbox_sound

Definition at line 37 of file sound_nix.hpp.

◆ click_left_sound

audio_instance sound::sound_impl::click_left_sound

Definition at line 33 of file sound_nix.hpp.

◆ click_right_sound

audio_instance sound::sound_impl::click_right_sound

Definition at line 34 of file sound_nix.hpp.

◆ click_sound

audio_instance sound::sound_impl::click_sound

Definition at line 32 of file sound_nix.hpp.

◆ console_close_sound

audio_instance sound::sound_impl::console_close_sound

Definition at line 71 of file sound_nix.hpp.

◆ console_open_sound

audio_instance sound::sound_impl::console_open_sound

Definition at line 70 of file sound_nix.hpp.

◆ current_music

int32_t sound::sound_impl::current_music = -1

Definition at line 83 of file sound_nix.hpp.

◆ decision_sound

audio_instance sound::sound_impl::decision_sound

Definition at line 76 of file sound_nix.hpp.

◆ declaration_of_war_sound

audio_instance sound::sound_impl::declaration_of_war_sound

Definition at line 53 of file sound_nix.hpp.

◆ decline_sound

audio_instance sound::sound_impl::decline_sound

Definition at line 67 of file sound_nix.hpp.

◆ delete_sound

audio_instance sound::sound_impl::delete_sound

Definition at line 40 of file sound_nix.hpp.

◆ diplomatic_request_sound

audio_instance sound::sound_impl::diplomatic_request_sound

Definition at line 69 of file sound_nix.hpp.

◆ effect_sound

std::optional<ma_sound> sound::sound_impl::effect_sound

Definition at line 25 of file sound_nix.hpp.

◆ election_sound

audio_instance sound::sound_impl::election_sound

Definition at line 60 of file sound_nix.hpp.

◆ enact_sound

audio_instance sound::sound_impl::enact_sound

Definition at line 38 of file sound_nix.hpp.

◆ engine

ma_engine sound::sound_impl::engine

Definition at line 29 of file sound_nix.hpp.

◆ error_sound

audio_instance sound::sound_impl::error_sound

Definition at line 55 of file sound_nix.hpp.

◆ event_sound

audio_instance sound::sound_impl::event_sound

Definition at line 75 of file sound_nix.hpp.

◆ factory_built_sound

audio_instance sound::sound_impl::factory_built_sound

Definition at line 59 of file sound_nix.hpp.

◆ first_music

int32_t sound::sound_impl::first_music = -1

Definition at line 82 of file sound_nix.hpp.

◆ fort_built_sound

audio_instance sound::sound_impl::fort_built_sound

Definition at line 62 of file sound_nix.hpp.

◆ global_pause

bool sound::sound_impl::global_pause = false

Definition at line 30 of file sound_nix.hpp.

◆ hover_sound

audio_instance sound::sound_impl::hover_sound

Definition at line 36 of file sound_nix.hpp.

◆ interface_sound

std::optional<ma_sound> sound::sound_impl::interface_sound

Definition at line 26 of file sound_nix.hpp.

◆ land_battle_sounds

audio_instance sound::sound_impl::land_battle_sounds

Definition at line 72 of file sound_nix.hpp.

◆ last_music

int32_t sound::sound_impl::last_music = -1

Definition at line 81 of file sound_nix.hpp.

◆ major_event_sound

audio_instance sound::sound_impl::major_event_sound

Definition at line 66 of file sound_nix.hpp.

◆ minor_event_sound

audio_instance sound::sound_impl::minor_event_sound

Definition at line 65 of file sound_nix.hpp.

◆ music

std::optional<ma_sound> sound::sound_impl::music

Definition at line 27 of file sound_nix.hpp.

◆ music_list

std::vector< audio_instance > sound::sound_impl::music_list

Definition at line 80 of file sound_nix.hpp.

◆ naval_base_built_sound

audio_instance sound::sound_impl::naval_base_built_sound

Definition at line 64 of file sound_nix.hpp.

◆ naval_battle_sounds

audio_instance sound::sound_impl::naval_battle_sounds

Definition at line 73 of file sound_nix.hpp.

◆ navy_built_sound

audio_instance sound::sound_impl::navy_built_sound

Definition at line 58 of file sound_nix.hpp.

◆ navy_move_sound

audio_instance sound::sound_impl::navy_move_sound

Definition at line 51 of file sound_nix.hpp.

◆ navy_select_sound

audio_instance sound::sound_impl::navy_select_sound

Definition at line 52 of file sound_nix.hpp.

◆ pause_sound

audio_instance sound::sound_impl::pause_sound

Definition at line 77 of file sound_nix.hpp.

◆ peace_sound

audio_instance sound::sound_impl::peace_sound

Definition at line 56 of file sound_nix.hpp.

◆ province_select_sounds

audio_instance sound::sound_impl::province_select_sounds

Definition at line 74 of file sound_nix.hpp.

◆ railroad_built_sound

audio_instance sound::sound_impl::railroad_built_sound

Definition at line 63 of file sound_nix.hpp.

◆ revolt_sound

audio_instance sound::sound_impl::revolt_sound

Definition at line 61 of file sound_nix.hpp.

◆ subtab_sound

audio_instance sound::sound_impl::subtab_sound

Definition at line 39 of file sound_nix.hpp.

◆ tab_budget_sound

audio_instance sound::sound_impl::tab_budget_sound

Definition at line 35 of file sound_nix.hpp.

◆ tab_diplomacy_sound

audio_instance sound::sound_impl::tab_diplomacy_sound

Definition at line 43 of file sound_nix.hpp.

◆ tab_military_sound

audio_instance sound::sound_impl::tab_military_sound

Definition at line 44 of file sound_nix.hpp.

◆ tab_politics_sound

audio_instance sound::sound_impl::tab_politics_sound

Definition at line 42 of file sound_nix.hpp.

◆ tab_population_sound

audio_instance sound::sound_impl::tab_population_sound

Definition at line 45 of file sound_nix.hpp.

◆ tab_production_sound

audio_instance sound::sound_impl::tab_production_sound

Definition at line 46 of file sound_nix.hpp.

◆ tab_technology_sound

audio_instance sound::sound_impl::tab_technology_sound

Definition at line 47 of file sound_nix.hpp.

◆ technology_finished_sound

audio_instance sound::sound_impl::technology_finished_sound

Definition at line 48 of file sound_nix.hpp.

◆ unpause_sound

audio_instance sound::sound_impl::unpause_sound

Definition at line 78 of file sound_nix.hpp.

◆ window_handle

HWND sound::sound_impl::window_handle = nullptr

Definition at line 59 of file sound_win.hpp.


The documentation for this class was generated from the following files: