サウンドシステムクラス More...
#include <GxSysSound.h>


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 |
| 一時停止設定 | |
| GxUnitSound * | createSound (GxResSound *pResSound, s32 loopCount=LOOP_DEFAULT, f32 volume=1.0f, f32 pitch=1.0f, b32 is3D=true, GxUnitLocate *pParent=nullptr) |
| サウンドユニットを作成 | |
| GxUnitSound * | 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) |
| ストリーミングユニットを作成 | |
| GxUnitSoundInteractive * | 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) |
| インタラクティブサウンドを作成 | |
アクセサ | |
| constexpr GxUnitLocate * | getListenerUnit (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 GxClassBaseRoot & | operator= (const GxClassBaseRoot &) |
| 代入演算子 | |
| virtual GxRtti & | getRtti (void) const =0 |
| Rttiの取得 | |
| virtual GX_FORCE_INLINE const GxTypedObject * | getDefaultObject (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 GxSysSoundBase & | getSingleton (void) |
| 参照を取得 | |
| static constexpr GxSysSoundBase * | getSingletonPointer (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) |
| モジュールを削除 | |
サウンドシステムクラス
| GxUnitSound * GxSysSound::createSound | ( | GxResSound * | pResSound, |
| s32 | loopCount = LOOP_DEFAULT, | ||
| f32 | volume = 1.0f, | ||
| f32 | pitch = 1.0f, | ||
| b32 | is3D = true, | ||
| GxUnitLocate * | pParent = nullptr ) |
サウンドユニットを作成
| pResSound | [in] サウンドリソース |
| loopCount | [in] ループ回数 |
| volume | [in] ボリューム |
| pitch | [in] ピッチ |
| is3D | [in] 3D計算をするならtrue |
| pParent | [in] 親ユニット |

| 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 ) |
インタラクティブサウンドを作成
| path0 | [in] ファイルパス0 |
| path1 | [in] ファイルパス1 |
| controlValue | [in] コントロール値 |
| loopCount | [in] ループ回数 |
| volume | [in] ボリューム |
| pitch | [in] ピッチ |
| fadeTime | [in] フェード時間 |

| 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 ) |
ストリーミングユニットを作成
| path | [in] ファイルパス |
| loopCount | [in] ループ回数 |
| volume | [in] ボリューム |
| pitch | [in] ピッチ |
| is3D | [in] 3D計算をするならtrue |
| fadeTime | [in] フェード時間 |
| pParent | [in] 親ユニット |


|
overridevirtual |
初期化
| pInitialInformationBase | [in] 初期化情報 |
Reimplemented from GxSysBase.

|
inlineoverridevirtual |
一時停止判定
Reimplemented from GxSysSoundBase.
|
overridevirtual |
|
overridevirtual |
終了処理
Reimplemented from GxSysBase.
|
overridevirtual |