Project Alice
Loading...
Searching...
No Matches
sound_nix.cpp File Reference
#include "sound.hpp"
#include "system_state.hpp"
#include "miniaudio.h"
Include dependency graph for sound_nix.cpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  sound
 

Macros

#define MINIAUDIO_IMPLEMENTATION   1
 
#define MA_NO_FLAC   1
 
#define MA_NO_OPENSL   1
 
#define MA_NO_WEBAUDIO   1
 
#define MA_NO_SNDIO   1
 
#define MA_NO_AUDIO4   1
 
#define MA_NO_WINMM   1
 
#define MA_NO_WASAPI   1
 
#define MA_NO_WINMM   1
 
#define MA_NO_COREAUDIO   1
 

Functions

void sound::initialize_sound_system (sys::state &state)
 
void sound::change_effect_volume (sys::state &state, float v)
 
void sound::change_interface_volume (sys::state &state, float v)
 
void sound::change_music_volume (sys::state &state, float v)
 
void sound::play_effect (sys::state &state, audio_instance &s, float volume)
 
void sound::play_interface_sound (sys::state &state, audio_instance &s, float volume)
 
void sound::stop_music (sys::state &state)
 
void sound::start_music (sys::state &state, float v)
 
void sound::pause_all (sys::state &state)
 
void sound::resume_all (sys::state &state)
 
void sound::update_music_track (sys::state &state)
 
audio_instance & sound::get_click_sound (sys::state &state)
 
audio_instance & sound::get_click_left_sound (sys::state &state)
 
audio_instance & sound::get_click_right_sound (sys::state &state)
 
audio_instance & sound::get_tab_budget_sound (sys::state &state)
 
audio_instance & sound::get_hover_sound (sys::state &state)
 
audio_instance & sound::get_checkbox_sound (sys::state &state)
 
audio_instance & sound::get_enact_sound (sys::state &state)
 
audio_instance & sound::get_subtab_sound (sys::state &state)
 
audio_instance & sound::get_delete_sound (sys::state &state)
 
audio_instance & sound::get_autochoose_sound (sys::state &state)
 
audio_instance & sound::get_tab_politics_sound (sys::state &state)
 
audio_instance & sound::get_tab_diplomacy_sound (sys::state &state)
 
audio_instance & sound::get_tab_military_sound (sys::state &state)
 
audio_instance & sound::get_tab_population_sound (sys::state &state)
 
audio_instance & sound::get_tab_production_sound (sys::state &state)
 
audio_instance & sound::get_tab_technology_sound (sys::state &state)
 
audio_instance & sound::get_army_select_sound (sys::state &state)
 
audio_instance & sound::get_army_move_sound (sys::state &state)
 
audio_instance & sound::get_navy_select_sound (sys::state &state)
 
audio_instance & sound::get_navy_move_sound (sys::state &state)
 
audio_instance & sound::get_error_sound (sys::state &state)
 
audio_instance & sound::get_peace_sound (sys::state &state)
 
audio_instance & sound::get_army_built_sound (sys::state &state)
 
audio_instance & sound::get_navy_built_sound (sys::state &state)
 
audio_instance & sound::get_declaration_of_war_sound (sys::state &state)
 
audio_instance & sound::get_technology_finished_sound (sys::state &state)
 
audio_instance & sound::get_factory_built_sound (sys::state &state)
 
audio_instance & sound::get_election_sound (sys::state &state)
 
audio_instance & sound::get_revolt_sound (sys::state &state)
 
audio_instance & sound::get_fort_built_sound (sys::state &state)
 
audio_instance & sound::get_railroad_built_sound (sys::state &state)
 
audio_instance & sound::get_naval_base_built_sound (sys::state &state)
 
audio_instance & sound::get_minor_event_sound (sys::state &state)
 
audio_instance & sound::get_major_event_sound (sys::state &state)
 
audio_instance & sound::get_decline_sound (sys::state &state)
 
audio_instance & sound::get_accept_sound (sys::state &state)
 
audio_instance & sound::get_diplomatic_request_sound (sys::state &state)
 
audio_instance & sound::get_chat_message_sound (sys::state &state)
 
audio_instance & sound::get_console_open_sound (sys::state &state)
 
audio_instance & sound::get_console_close_sound (sys::state &state)
 
audio_instance & sound::get_event_sound (sys::state &state)
 
audio_instance & sound::get_decision_sound (sys::state &state)
 
audio_instance & sound::get_pause_sound (sys::state &state)
 
audio_instance & sound::get_unpause_sound (sys::state &state)
 
audio_instance & sound::get_random_land_battle_sound (sys::state &state)
 
audio_instance & sound::get_random_naval_battle_sound (sys::state &state)
 
audio_instance & sound::get_random_province_select_sound (sys::state &state)
 
void sound::play_new_track (sys::state &state)
 
void sound::play_next_track (sys::state &state)
 
void sound::play_previous_track (sys::state &state)
 
native_string sound::get_current_track_name (sys::state &state)
 

Macro Definition Documentation

◆ MA_NO_AUDIO4

#define MA_NO_AUDIO4   1

Definition at line 9 of file sound_nix.cpp.

◆ MA_NO_COREAUDIO

#define MA_NO_COREAUDIO   1

Definition at line 13 of file sound_nix.cpp.

◆ MA_NO_FLAC

#define MA_NO_FLAC   1

Definition at line 5 of file sound_nix.cpp.

◆ MA_NO_OPENSL

#define MA_NO_OPENSL   1

Definition at line 6 of file sound_nix.cpp.

◆ MA_NO_SNDIO

#define MA_NO_SNDIO   1

Definition at line 8 of file sound_nix.cpp.

◆ MA_NO_WASAPI

#define MA_NO_WASAPI   1

Definition at line 11 of file sound_nix.cpp.

◆ MA_NO_WEBAUDIO

#define MA_NO_WEBAUDIO   1

Definition at line 7 of file sound_nix.cpp.

◆ MA_NO_WINMM [1/2]

#define MA_NO_WINMM   1

Definition at line 12 of file sound_nix.cpp.

◆ MA_NO_WINMM [2/2]

#define MA_NO_WINMM   1

Definition at line 12 of file sound_nix.cpp.

◆ MINIAUDIO_IMPLEMENTATION

#define MINIAUDIO_IMPLEMENTATION   1

Definition at line 4 of file sound_nix.cpp.