Files
wii-ipl/libs/NW4R/include/nw4r/snd/SoundSystem.h
2026-03-15 13:32:23 +00:00

34 lines
1.3 KiB
C++

#ifndef NW4R_SND_SOUND_SYSTEM_H
#define NW4R_SND_SOUND_SYSTEM_H
#include <nw4r/snd/types.h>
#include <nw4r/snd/AxManager.h>
#include <nw4r/snd/RemoteSpeakerManager.h>
#include <nw4r/snd/TaskThread.h>
namespace nw4r {
namespace snd {
class FxBase;
class SoundSystem {
public:
static const int DEFAULT_DVD_THREAD_PRIORITY = 3;
static const int DEFAULT_SOUND_THREAD_PRIORITY = 4;
static void InitSoundSystem(s32 soundThreadPrio = DEFAULT_SOUND_THREAD_PRIORITY, s32 dvdThreadPriority = DEFAULT_DVD_THREAD_PRIORITY);
static void SetOutputMode(OutputMode mode) { detail::AxManager::GetInstance().SetOutputMode(mode); }
static f32 GetMasterVolume() { return detail::AxManager::GetInstance().GetMasterVolume(); }
static void SetMasterVolume(f32 volume, int frame) { detail::AxManager::GetInstance().SetMasterVolume(volume, frame); }
static RemoteSpeaker& GetRemoteSpeaker(int idx) { return detail::RemoteSpeakerManager::GetInstance().GetRemoteSpeaker(idx); }
static void AppendEffect(AuxBus bus, FxBase* pFx) { detail::AxManager::GetInstance().AppendEffect(bus, pFx); }
static void ClearEffect(AuxBus bus, int frame) { detail::AxManager::GetInstance().ClearEffect(bus, frame); }
};
} // namespace snd
} // namespace nw4r
#endif