KisaragiLibrary
 
読み取り中…
検索中…
一致する文字列を見つけられません
Kisaragi_Lib::SoundResourceFacade クラス

#include <Sound.hpp>

クラス

class  SoundResourceFacade_Impl
 SoundFacadeの本体 [詳解]
 

静的公開メンバ関数

static void Load (std::string _key, std::string _pass)
 
static void UnLoad (std::string _key)
 
static std::unique_ptr< SoundClipCreateClip (std::string _key)
 

静的非公開メンバ関数

static void Init ()
 

静的非公開変数類

static std::once_flag once
 
static std::weak_ptr< SoundResourceFacade_Implptr
 

関数詳解

◆ Load()

void Kisaragi_Lib::SoundResourceFacade::Load ( std::string _key,
std::string _pass )
static
139 {
140 Init();
141 ptr.lock()->Load(_key, _pass);
142 }
static void Init()
Definition Sound.cpp:133
static std::weak_ptr< SoundResourceFacade_Impl > ptr
Definition Sound.hpp:54

参照元 Kisaragi_Lib::SoundPlayerComponent::Add().

◆ UnLoad()

void Kisaragi_Lib::SoundResourceFacade::UnLoad ( std::string _key)
static
145 {
146 Init();
147 ptr.lock()->UnLoad(_key);
148 }

◆ CreateClip()

std::unique_ptr< SoundClip > Kisaragi_Lib::SoundResourceFacade::CreateClip ( std::string _key)
static
151 {
152 return std::make_unique<SoundClip>(ptr.lock()->GetSoundHandle(_key));
153 }

参照元 Kisaragi_Lib::SoundPlayerComponent::Add(), Kisaragi_Lib::SoundPlayerComponent::Add().

◆ Init()

void Kisaragi_Lib::SoundResourceFacade::Init ( )
staticprivate
134 {
135 std::call_once(once, [&]() {ptr = Singleton<SoundResourceFacade_Impl>::GetPtr(); });
136 }
static std::weak_ptr< T > GetPtr()
T^̃CX^Xptr擾
Definition Singleton.hpp:50
static std::once_flag once
Definition Sound.hpp:51

参照元 Load(), UnLoad().

メンバ詳解

◆ once

std::once_flag Kisaragi_Lib::SoundResourceFacade::once
staticprivate

参照元 Init().

◆ ptr

std::weak_ptr< SoundResourceFacade::SoundResourceFacade_Impl > Kisaragi_Lib::SoundResourceFacade::ptr
staticprivate

このクラス詳解は次のファイルから抽出されました: