Platform SDK: DirectX |
アプリケーションは DirectSound3DListener クラスのメソッドを使って、3D 空間でのリスナーの位置、方向、リスニング環境を記述するパラメータの取得と設定を行う。ここでは、DirectSound3DListener クラスのメソッドのリファレンスを提供する。
DirectSoundBuffer.GetDirectSound3DListener メソッドを使って、このクラスのオブジェクトを取得する。リスナーから取得されるバッファは、DSBCAPS_PRIMARYBUFFER フラグで作成されなくてはならない。また、プライマリ バッファから取得される DirectSound3DBuffer オブジェクトの DirectSound3DBuffer.GetDirectSound3DListener メソッドを呼び出すと、リスナーも取得できる。
DirectSound3DListener クラスのメソッドは、以下のグループにまとめることができる。
バッチ パラメータ | GetAllParameters |
SetAllParameters | |
遅延設定 | CommitDeferredSettings |
距離係数 | GetDistanceFactor |
SetDistanceFactor | |
ドップラー係数 | GetDopplerFactor |
SetDopplerFactor | |
オブジェクトの取得 | GetDirectSoundBuffer |
方向 | GetOrientation |
SetOrientation | |
位置 | GetPosition |
SetPosition | |
ロールオフ係数 | GetRolloffFactor |
SetRolloffFactor | |
速度 | GetVelocity |
SetVelocity |