8typedef struct HWND__*
HWND;
14 IGraphBuilder* graph_interface =
nullptr;
15 IMediaControl* control_interface =
nullptr;
16 IBasicAudio* audio_interface =
nullptr;
17 IMediaSeeking* seek_interface =
nullptr;
18 IMediaEventEx* event_interface =
nullptr;
19 std::atomic<bool> interface_lock;
28 : graph_interface(o.graph_interface), control_interface(o.control_interface),
29 audio_interface(o.audio_interface), seek_interface(o.seek_interface), event_interface(o.event_interface),
filename(std::move(o.filename)),
32 o.graph_interface =
nullptr;
33 o.control_interface =
nullptr;
34 o.audio_interface =
nullptr;
35 o.seek_interface =
nullptr;
36 o.event_interface =
nullptr;
43 void play(
float volume,
bool as_music,
void* window_handle);
void change_volume(float new_volume) const
audio_instance(std::wstring const &file)
audio_instance(audio_instance &&o) noexcept
void play(float volume, bool as_music, void *window_handle)
audio_instance(audio_instance const &)=delete
void set_file(std::wstring const &file)
void resume_interface_sound() const
audio_instance province_select_sounds[4]
audio_instance tab_diplomacy_sound
audio_instance land_battle_sounds[6]
audio_instance railroad_built_sound
void play_interface_sound(audio_instance &s, float volume)
audio_instance revolt_sound
audio_instance decline_sound
audio_instance naval_base_built_sound
audio_instance navy_move_sound
void play_music(int32_t track, float volume)
audio_instance click_left_sound
audio_instance army_select_sound
void pause_effect() const
audio_instance major_event_sound
audio_instance tab_production_sound
void resume_music() const
audio_instance minor_event_sound
audio_instance console_open_sound
audio_instance checkbox_sound
audio_instance declaration_of_war_sound
audio_instance diplomatic_request_sound
std::vector< audio_instance > music_list
audio_instance tab_politics_sound
audio_instance decision_sound
audio_instance fort_built_sound
audio_instance navy_select_sound
audio_instance tab_budget_sound
void change_effect_volume(float v) const
audio_instance factory_built_sound
void resume_effect() const
audio_instance accept_sound
audio_instance tab_military_sound
audio_instance autochoose_sound
audio_instance army_move_sound
void change_interface_volume(float v) const
void play_new_track(sys::state &ws)
audio_instance console_close_sound
audio_instance unpause_sound
void play_previous_track(sys::state &ws)
audio_instance naval_battle_sounds[6]
audio_instance delete_sound
audio_instance tab_technology_sound
void play_effect(audio_instance &s, float volume)
audio_instance tab_population_sound
audio_instance subtab_sound
audio_instance click_right_sound
audio_instance error_sound
audio_instance enact_sound
audio_instance click_sound
audio_instance army_built_sound
void pause_interface_sound() const
void play_next_track(sys::state &ws)
audio_instance technology_finished_sound
void change_music_volume(float v) const
audio_instance chat_message_sound
audio_instance election_sound
audio_instance hover_sound
audio_instance pause_sound
audio_instance navy_built_sound
audio_instance peace_sound
audio_instance event_sound