vkmEngine 1.0.0
A C++ game engine · vkmengine.com
Loading...
Searching...
No Matches
audio_events.h
1#pragma once
2
3#include <glm/glm.hpp>
4
5#include "resource/asset/audio_clip_asset.h"
6#include "system/audio/audio_device.h"
7
8namespace Vkm::Engine {
9
21 AudioClipHandle clip;
22 VoiceParams params;
23
32 static PlaySoundEvent at(AudioClipHandle clip, const glm::vec3& position, float volume = 1.0f) {
33 PlaySoundEvent event{clip, {}};
34 event.params.position = position;
35 event.params.volume = volume;
36 return event;
37 }
38};
39
40} // namespace Vkm::Engine
A request to hear a clip once, from gameplay that owns no entity for it.
Definition audio_events.h:20
static PlaySoundEvent at(AudioClipHandle clip, const glm::vec3 &position, float volume=1.0f)
A request to hear clip once, from position.
Definition audio_events.h:32
Everything the mixer needs to know about one voice, pushed every frame.
Definition audio_device.h:32