フェード処理クラス
[詳解]
#include <mgl_audio_fade.h>
|
| void | Start (float currentVolume, float targetVolume, float fadeTimeSec, float samplesPerSec, bool isAutoStop) noexcept |
| | 開始
|
| |
| bool | Update (float &volume) noexcept |
| | 更新処理
|
| |
|
void | Cancel () noexcept |
| | キャンセル
|
| |
| constexpr bool | IsActive () const noexcept |
| | 有効状態を取得
|
| |
| constexpr bool | IsAutoStop () const noexcept |
| | 自動停止フラグを取得
|
| |
◆ IsActive()
| bool MGL::Audio::Fade::IsActive |
( |
| ) |
const |
|
inlinenodiscardconstexprnoexcept |
◆ IsAutoStop()
| bool MGL::Audio::Fade::IsAutoStop |
( |
| ) |
const |
|
inlinenodiscardconstexprnoexcept |
◆ Start()
| void MGL::Audio::Fade::Start |
( |
float | currentVolume, |
|
|
float | targetVolume, |
|
|
float | fadeTimeSec, |
|
|
float | samplesPerSec, |
|
|
bool | isAutoStop ) |
|
noexcept |
開始
- 引数
-
| [in] | currentVolume | 現在の音量 |
| [in] | targetVolume | 最終的な音量 |
| [in] | fadeTimeSec | フェード時間(秒) |
| [in] | samplesPerSec | サンプリングレート |
| [in] | isAutoStop | 自動停止フラグ |
◆ Update()
| bool MGL::Audio::Fade::Update |
( |
float & | volume | ) |
|
|
noexcept |
このクラス詳解は次のファイルから抽出されました: