5 #include "Mountain/core.hpp" 6 #include "Mountain/audio/audio_buffer.hpp" 7 #include "Mountain/audio/audio_device.hpp" 29 MOUNTAIN_API
static bool_t Initialize();
31 MOUNTAIN_API
static void Shutdown();
33 MOUNTAIN_API
static void Update();
39 MOUNTAIN_API
static void RegisterBuffer(
AudioBuffer* buffer);
41 MOUNTAIN_API
static void UnregisterBuffer(
AudioBuffer* buffer);
43 MOUNTAIN_API
static void UpdateContext();
45 MOUNTAIN_API
static const AudioDevice* GetCurrentDevice();
47 MOUNTAIN_API
static void SetCurrentDevice(
AudioDevice* newCurrentDevice);
49 MOUNTAIN_API
static float_t GetDistanceFactor();
51 MOUNTAIN_API
static void SetDistanceFactor(float_t newDistanceFactor);
54 MOUNTAIN_API
static inline AudioDevice* m_CurrentDevice =
nullptr;
55 MOUNTAIN_API
static inline AudioContext* m_CurrentContext =
nullptr;
59 MOUNTAIN_API
static inline float_t m_DistanceFactor = 0.2f;
61 MOUNTAIN_API
static inline bool_t m_DefaultDeviceChanged =
false;
63 static void EventCallback(ALCenum eventType, ALCenum deviceType, ALCdevice* device, ALCsizei length,
const ALCchar* message,
void* userParam);
68 static void IterateAlStringList(
const char_t* list,
const std::function<
void(
const char_t*)>& lambda);
Defines the Mountain::List class.
static MOUNTAIN_API AudioContext * GetContext()
Returns the current device's context.
A dynamic array implementation. Wrapper around the std::vector class.
Contains all declarations of the Mountain Framework.