Monad Engine da02fba2
> Undercity Codex_
Loading...
Searching...
No Matches
AudioManager.h File Reference

Owns the global miniaudio engine and 3D listener position. More...

#include <memory>
#include "Common.h"
#include "Types.h"
+ Include dependency graph for AudioManager.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  mnd::AudioManager
 Global audio backend wrapper. More...
 

Namespaces

namespace  mnd
 

Detailed Description

Owns the global miniaudio engine and 3D listener position.

One instance lives inside mnd::Engine; reach it with Engine::GetInstance().GetAudio(). Every mnd::Audio clip plays through the underlying ma_engine it returns. Update the listener once per frame (typically from mnd::AudioListenerComponent::Update) so 3D-positioned sounds pan and attenuate correctly.

Definition in file AudioManager.h.