5 #include <unordered_map> 7 #include <mos/al/buffer.hpp> 8 #include <mos/al/filter.hpp> 9 #include <mos/al/source.hpp> 14 #include <AL/efx-presets.h> 16 #include <mos/apu/scene.hpp> 17 #include <mos/apu/sound.hpp> 18 #include <mos/aud/sound_streams.hpp> 19 #include <mos/aud/sounds.hpp> 49 auto load(
const aud::Sounds &sounds) -> std::vector<mos::apu::Sound>;
52 -> std::vector<mos::apu::Sound_stream>;
55 auto render(
const apu::Scene &scene,
const float dt) -> void;
66 const float dt) -> void;
69 auto render_sound(
const apu::Sound &sound,
const float dt) -> void;
74 EFXEAXREVERBPROPERTIES reverb_properties;
75 ALuint reverb_effect{0};
76 ALuint reverb_slot{0};
77 ALuint lowpass_filter1{0};
78 ALuint lowpass_filter2{0};
80 using SourcePair = std::pair<unsigned int, ALuint>;
81 using BufferPair = std::pair<unsigned int, ALuint>;
82 using Sources = std::unordered_map<unsigned int, Source>;
83 using Buffers = std::unordered_map<unsigned int, Buffer>;
84 using Filters = std::unordered_map<unsigned int, Filter>;
Definition: buffer.hpp:13
Where the audio system listens from.
Definition: listener.hpp:8
OpenAL audio renderer.
Definition: renderer.hpp:35
Audio scene with listener and audio sources.
Definition: scene.hpp:11
Definition: renderer.hpp:28
Streamed audio from file, combined with a source living on the APU.
Definition: sound_stream.hpp:10
Definition: filter.hpp:13