Represents a loaded audio clip that can be played, stopped, and positioned.
Definition kaudio.h:36
float getMasterVolume() const
Returns the current master volume.
bool init()
Initialises the underlying miniaudio engine.
kAudio * loadAudio(const kString &filePath)
Loads an audio file and returns a new kAudio instance.
kAudioManager()
Constructs the manager; call init() before use.
void setListenerPosition(const kVec3 &position)
Moves the audio listener to a new world-space position.
void setListenerDirection(const kVec3 &forward, const kVec3 &up)
Sets the listener's orientation.
void unloadAudio(kAudio *audio)
Stops and destroys a previously loaded kAudio.
void setListenerVelocity(const kVec3 &velocity)
Sets the listener's velocity for Doppler shift calculation.
void shutdown()
Stops all sounds, unloads every kAudio, and tears down the engine. Called automatically by the destru...
void setMasterVolume(float volume)
Sets the master output volume.
~kAudioManager()
Destroys the manager, calling shutdown() if still active.
Single audio clip — 2D or 3D positional playback.
Core type aliases, enumerations, structs, and utility functions used throughout the engine.
Symbol visibility / linkage macro for the Kemena3D library.
#define KEMENA3D_API
Definition kexport.h:35
Top-level Kemena3D engine namespace.
Definition kanimation.h:23
std::string kString
Standard string alias.
Definition kdatatype.h:42
glm::vec3 kVec3
3-component float vector.
Definition kdatatype.h:33