OROCHI
 
Loading...
Searching...
No Matches
GxSysSound Class Reference

サウンドシステムクラス More...

#include <GxSysSound.h>

Inheritance diagram for GxSysSound:
Collaboration diagram for GxSysSound:

Public Member Functions

初期化
 GxSysSound (void)
 デフォルトコンストラクタ
 
 ~GxSysSound (void) override
 デストラクタ
 
b32 initialize (const GxClassBase *pInitialInformationBase) override
 初期化
 
void terminate (void) override
 終了処理
 
操作
void update (void) override
 更新処理
 
GX_FORCE_INLINE b32 isPause (void) const override
 一時停止判定
 
void pause (b32 enable) override
 一時停止設定
 
GxUnitSoundcreateSound (GxResSound *pResSound, s32 loopCount=LOOP_DEFAULT, f32 volume=1.0f, f32 pitch=1.0f, b32 is3D=true, GxUnitLocate *pParent=nullptr)
 サウンドユニットを作成
 
GxUnitSoundcreateStream (GX_CSTR path, s32 loopCount=LOOP_DEFAULT, f32 volume=1.0f, f32 pitch=1.0f, b32 is3D=true, f32 fadeTime=0.f, GxUnitLocate *pParent=nullptr)
 ストリーミングユニットを作成
 
GxUnitSoundInteractivecreateSoundInteractive (GX_CSTR path0, GX_CSTR path1, f32 controlValue=0.f, s32 loopCount=LOOP_DEFAULT, f32 volume=1.0f, f32 pitch=1.0f, f32 fadeTime=0.f)
 インタラクティブサウンドを作成
 
アクセサ
constexpr GxUnitLocategetListenerUnit (void) const
 リスナーユニットを取得
 
constexpr void setListenerUnit (GxUnitLocate *pUnit)
 リスナーユニットを設定
 
- Public Member Functions inherited from GxSysSoundBase
 GxSysSoundBase (void)
 デフォルトコンストラクタ
 
 ~GxSysSoundBase (void) override
 デストラクタ
 
void getFinalPath (GxString &dst, GX_CSTR src)
 リソースの最終パスを取得(プラットフォーム依存パスを追加)
 
virtual GX_FORCE_INLINE b32 registMotionLink (void *pUnitChar, u32 uniqueID, s32 *pAttribute, void **ppMotionLinkHandle) const
 モーション連動に登録
 
virtual GX_FORCE_INLINE void releaseMotionLink (void **ppMotionLinkHandle) const
 モーション連動解除
 
virtual GX_FORCE_INLINE void updateMotionLink (void *pMotionLinkHandle, GxObjMotionBlend *pObjMotionBlend, s32 NowAnimeId, s32 NowFrame, u32 *pJoint) const
 モーション連動更新
 
virtual GX_FORCE_INLINE void setGetBonePositionFunction (getBonePositionFunction function) const
 骨座標取得関数セット
 
virtual GX_FORCE_INLINE void * getSoundDriverObject (void) const
 サウンドドライバーオブジェクト取得
 
- Public Member Functions inherited from GxSysBase
template<typename T >
T * getModule (void) const
 モジュールを取得
 
 GxSysBase (void)
 デフォルトコンストラクタ
 
 ~GxSysBase (void) override
 デストラクタ
 
b32 isLocked (void)
 クリティカルセクションのロック状態を確認する
 
void sleep (f32 time)
 スリープ(スクリプト用)
 
- Public Member Functions inherited from GxClassBase
constexpr GxClassBase (void)
 コンストラクタ
 
constexpr GxClassBase (const GxClassBase &base)
 コピーコンストラクタ
 
 ~GxClassBase (void) override
 デストラクタ
 
- Public Member Functions inherited from GxClassBaseRoot
constexpr GxClassBaseRoot (void)
 コンストラクタ
 
constexpr GxClassBaseRoot (const GxClassBaseRoot &)
 コピーコンストラクタ
 
virtual ~GxClassBaseRoot (void)
 デストラクタ
 
constexpr GxClassBaseRootoperator= (const GxClassBaseRoot &)
 代入演算子
 
virtual GxRttigetRtti (void) const =0
 Rttiの取得
 
virtual GX_FORCE_INLINE const GxTypedObjectgetDefaultObject (void)
 デフォルトオブジェクトを取得
 
GX_FORCE_INLINE b32 isDefaultObject (void)
 デフォルトオブジェクト判定
 
- Public Member Functions inherited from SingletonBase< GxSysSoundBase >
 SingletonBase (void)
 コンストラクタ
 
 ~SingletonBase (void)
 デストラクタ
 

Static Public Attributes

定義
static const s32 LOOP_DEFAULT = -1
 デフォルトのループ回数の設定値
 
static const s32 LOOP_INFINITY = 255
 無限ループの設定値
 
- Static Public Attributes inherited from GxSysSoundBase
static GX_CSTR CHANNEL_TEXTS [static_cast< s32 >(CHANNEL::MAX)]
 チャンネル数定義文字列テーブル
 
static constexpr u32 OBJECT_MOTION_DATA_MAX = GxMath::VALUE_128
 モーションデータ最大数
 
static constexpr u32 OBJECT_MOTION_PLAY_MAX = GxMath::VALUE_2
 モーション再生最大数
 
static constexpr u32 OBJECT_MOTION_USE_BONE_MAX = GxMath::VALUE_32
 モーションで使用する骨の最大数
 
static constexpr u32 MOTION_REPLACE_MAX = GxMath::VALUE_2
 モーションの置き換え最大数
 
static constexpr u32 JOINT_BIT_MAX = GxMath::VALUE_8
 関節のビット最大数
 

Additional Inherited Members

- Public Types inherited from GxSysSoundBase
enum class  CHANNEL {
  MONO , STEREO , _5_1 , _7_1 ,
  _7_1_4 , MAX
}
 チャンネル数定義 More...
 
enum class  CHANNEL_COUNT {
  MONO = 1 , STEREO = 2 , _5_1 = 6 , _7_1 = 8 ,
  _7_1_4 = 12 , MAX = _7_1_4
}
 各チャンネル数定義 More...
 
typedef f32 *(*) getBonePositionFunction(void *pValue, s32 jointId)
 ボーン位置取得関数
 
- Static Public Member Functions inherited from GxClassBaseRoot
static GX_FORCE_INLINE GxRtti__getStaticRtti (void)
 Rttiの取得
 
- Static Public Member Functions inherited from SingletonBase< GxSysSoundBase >
static GX_FORCE_INLINE GxSysSoundBasegetSingleton (void)
 参照を取得
 
static constexpr GxSysSoundBasegetSingletonPointer (void)
 ポインタを取得
 
- Protected Types inherited from GxSysBase
enum class  LOCK_TYPE { SEQUENTIAL_THREAD_SAFE , THREAD_SAFE }
 ロックタイプ More...
 
- Protected Member Functions inherited from GxSysBase
void terminateGxModules (void)
 GXモジュールの終了処理
 
void lock (LOCK_TYPE type=LOCK_TYPE::THREAD_SAFE)
 クリティカルセクションに入る
 
void unlock (LOCK_TYPE type=LOCK_TYPE::THREAD_SAFE)
 クリティカルセクションを出る
 
template<typename T >
T * addModule (void)
 モジュールを作成
 
template<typename T >
void removeModule (void)
 モジュールを削除
 

Detailed Description

サウンドシステムクラス

Member Function Documentation

◆ createSound()

GxUnitSound * GxSysSound::createSound ( GxResSound * pResSound,
s32 loopCount = LOOP_DEFAULT,
f32 volume = 1.0f,
f32 pitch = 1.0f,
b32 is3D = true,
GxUnitLocate * pParent = nullptr )

サウンドユニットを作成

Parameters
pResSound[in] サウンドリソース
loopCount[in] ループ回数
volume[in] ボリューム
pitch[in] ピッチ
is3D[in] 3D計算をするならtrue
pParent[in] 親ユニット
Returns
作成したユニット
Here is the call graph for this function:

◆ createSoundInteractive()

GxUnitSoundInteractive * GxSysSound::createSoundInteractive ( GX_CSTR path0,
GX_CSTR path1,
f32 controlValue = 0.f,
s32 loopCount = LOOP_DEFAULT,
f32 volume = 1.0f,
f32 pitch = 1.0f,
f32 fadeTime = 0.f )

インタラクティブサウンドを作成

Parameters
path0[in] ファイルパス0
path1[in] ファイルパス1
controlValue[in] コントロール値
loopCount[in] ループ回数
volume[in] ボリューム
pitch[in] ピッチ
fadeTime[in] フェード時間
Here is the call graph for this function:

◆ createStream()

GxUnitSound * GxSysSound::createStream ( GX_CSTR path,
s32 loopCount = LOOP_DEFAULT,
f32 volume = 1.0f,
f32 pitch = 1.0f,
b32 is3D = true,
f32 fadeTime = 0.f,
GxUnitLocate * pParent = nullptr )

ストリーミングユニットを作成

Parameters
path[in] ファイルパス
loopCount[in] ループ回数
volume[in] ボリューム
pitch[in] ピッチ
is3D[in] 3D計算をするならtrue
fadeTime[in] フェード時間
pParent[in] 親ユニット
Returns
作成したユニット
Here is the call graph for this function:
Here is the caller graph for this function:

◆ initialize()

b32 GxSysSound::initialize ( const GxClassBase * pInitialInformationBase)
overridevirtual

初期化

Parameters
pInitialInformationBase[in] 初期化情報
Returns
成功ならtrue

Reimplemented from GxSysBase.

Here is the call graph for this function:

◆ isPause()

GX_FORCE_INLINE b32 GxSysSound::isPause ( void ) const
inlineoverridevirtual

一時停止判定

Reimplemented from GxSysSoundBase.

◆ pause()

void GxSysSound::pause ( b32 enable)
overridevirtual

一時停止設定

Parameters
enable[in] 一時停止するならtrue

Reimplemented from GxSysSoundBase.

◆ terminate()

void GxSysSound::terminate ( void )
overridevirtual

終了処理

Reimplemented from GxSysBase.

◆ update()

void GxSysSound::update ( void )
overridevirtual

更新処理

Reimplemented from GxSysBase.

Here is the call graph for this function:

The documentation for this class was generated from the following files: