Repository navigation
Expand file tree
/
Copy pathaudio_engine.h
More file actions
59 lines (51 loc) · 2.05 KB
/
Copy pathaudio_engine.h
File metadata and controls
59 lines (51 loc) · 2.05 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
#pragma once
#include "data_models.h"
#include <string>
extern ma_context context;
extern ma_device_info* playbackDevices;
extern ma_uint32 playbackDeviceCount;
extern ma_device_info* captureDevices;
extern ma_uint32 captureDeviceCount;
extern ma_engine engine_speakers;
extern ma_engine engine_virtual;
extern ma_device mic_pipe_device;
extern ma_device mic_speaker_pipe_device;
extern bool speakers_engine_initialized;
extern bool virtual_engine_initialized;
extern bool mic_device_initialized;
extern bool mic_speaker_device_initialized;
extern bool mic_passthrough_enabled;
bool init_audio_system();
void shutdown_audio_routing();
bool setup_audio_routing();
void load_sounds(const std::string& folder);
void stop_all_sounds();
void play_sound(Sound& sound);
void stop_sound(Sound& sound);
void toggle_pause_sound(Sound& sound);
bool is_sound_playing(Sound& sound);
void clean_sound_voices(Sound& sound);
void set_master_volume(float vol);
void apply_volumes();
void set_deafen(bool on);
void set_virtual_muted(bool on);
void delete_sound(Sound* sound);
void rename_sound(Sound* sound, const std::string& new_name);
void play_temp_sound(const std::string& path);
// Finds the sound whose voice trigger appears in the text. Returns
// nullptr when no trigger matches.
Sound* find_voice_trigger_sound(const std::string& text);
void play_temp_sound_speakers_only(const std::string& path);
void create_folder(const std::string& name);
void delete_folder(const std::string& folder_path);
void rename_folder(const std::string& old_path, const std::string& new_name);
void copy_sound_to_folder(Sound* sound, const std::string& dest_folder);
void cut_sound_to_folder(Sound* sound, const std::string& dest_folder);
void paste_clipboard();
void copy_folder_to(const std::string& folder_name, const std::string& dest_folder);
void cut_folder_to(const std::string& folder_name, const std::string& dest_folder);
void init_sound_fx_chain(Sound& sound);
void init_all_sound_fx_chains();
void destroy_all_sound_fx_chains();
void update_sound_fx_chain(Sound& sound);
void update_all_sound_fx_chains();