11#ifndef INCGUARD_MGL_AUDIO_FADE_H_1612076492
12#define INCGUARD_MGL_AUDIO_FADE_H_1612076492
23 constexpr Fade()
noexcept =
default;
25 void Start(
float currentVolume,
float targetVolume,
float fadeTimeSec,
float samplesPerSec,
bool isAutoStop)
noexcept;
26 bool Update(
float &volume)
noexcept;
36 [[nodiscard]]
constexpr bool IsActive() const noexcept
53 bool _isActive{
false};
54 bool _isAutoStop{
false};
55 float _targetVolume{0.0f};
56 float _addVolumePerFrame{0.0f};
フェード処理クラス
Definition mgl_audio_fade.h:21
void Cancel() noexcept
キャンセル
Definition mgl_audio_fade.cc:83
void Start(float currentVolume, float targetVolume, float fadeTimeSec, float samplesPerSec, bool isAutoStop) noexcept
開始
Definition mgl_audio_fade.cc:27
bool Update(float &volume) noexcept
更新処理
Definition mgl_audio_fade.cc:47
constexpr bool IsAutoStop() const noexcept
自動停止フラグを取得
Definition mgl_audio_fade.h:47
constexpr bool IsActive() const noexcept
有効状態を取得
Definition mgl_audio_fade.h:36