metaforce/Runtime/Audio/CStreamAudioManager.hpp

40 lines
1.0 KiB
C++
Raw Normal View History

2018-10-07 03:42:33 +00:00
#pragma once
#include "RetroTypes.hpp"
namespace urde
{
class CStreamAudioManager
{
static u8 g_MusicVolume;
static u8 g_SfxVolume;
static bool g_MusicUnmute;
static bool g_SfxUnmute;
2017-01-20 03:53:32 +00:00
static float GetTargetDSPVolume(float fileVol, bool music);
static void StopStreaming(bool oneshot);
static void UpdateDSP(bool oneshot, float dt);
static void UpdateDSPStreamers(float dt);
2017-02-06 03:21:58 +00:00
static void StopAllStreams();
public:
2018-06-02 00:03:31 +00:00
static void Start(bool oneshot, std::string_view fileName, float volume,
bool music, float fadeIn, float fadeOut);
2017-11-13 06:19:18 +00:00
static void Stop(bool oneshot, std::string_view fileName);
static void FadeBackIn(bool oneshot, float fadeTime);
static void TemporaryFadeOut(bool oneshot, float fadeTime);
static void Update(float dt);
2017-02-06 03:21:58 +00:00
static void StopAll();
static void SetMusicUnmute(bool unmute);
static void SetSfxVolume(u8 volume);
static void SetMusicVolume(u8 volume);
2017-01-16 09:14:54 +00:00
static void Initialize();
2017-11-27 05:06:53 +00:00
static void StopOneShot();
static void Shutdown();
};
}