#include <Sound3D.h>
Inheritance diagram for Lamp::Sound3D:
Public Member Functions | |
virtual bool | play () |
再生 | |
virtual void | setPosition (const Vector3 &position) |
位置の設定 | |
virtual const Vector3 & | getPosition () const |
位置の取得 | |
virtual void | setVelocity (const Vector3 &velocity) |
速度の設定 | |
virtual const Vector3 & | getVelocity () const |
速度の取得 | |
virtual void | setPositionAndVelocity (const Vector3 &position, float millisecond) |
位置と速度の設定 | |
virtual void | setMinimumDistance (float minimumDistance) |
最小距離の設定 | |
virtual float | getMinimumDistance () const |
最小距離の取得 | |
virtual void | setMaximumDistance (float maximumDistance) |
最大距離の設定 | |
virtual float | getMaximumDistance () const |
最大距離の取得 | |
virtual void | setDistance (float minimumDistance, float maximumDistance) |
距離の設定 | |
virtual void | setConeDirection (const Vector3 &coneDirection) |
コーンの向きの設定 | |
virtual const Vector3 & | getConeDirection () const |
コーンの向きの取得 | |
virtual void | setConeAngle (float insideConeAngle, float outsideConeAngle) |
コーン角度の設定 | |
virtual float | getInsideConeAngle () const |
内側コーン角度の取得 | |
virtual float | getOutsideConeAngle () const |
外側コーン角度の取得 | |
virtual void | setConeOutsideVolume (float coneOutsideVolume) |
コーン外側ボリュームの設定 | |
virtual float | getConeOutsideVolume () const |
コーン外側ボリュームの取得 | |
virtual void | set3DEnabled (bool enabled) |
3Dの有効、無効設定 | |
virtual bool | is3DEnabled () const |
3Dが有効か | |
virtual void | apply3DSettings () |
3D設定の適用 | |
virtual void | reset (Reset flags) |
リセット | |
virtual String | toString () const |
文字列への変換 | |
virtual bool | isSound3D () const |
3Dサウンドかどうか | |
Protected Member Functions | |
Sound3D (DirectSoundBuffer *soundBuffer) | |
コンストラクタ | |
virtual | ~Sound3D () |
デストラクタ | |
virtual void | copySound3DData (Sound3D *destination) |
3Dサウンドデータのコピー |
Definition at line 36 of file Sound3D.h.
|
コンストラクタ
Definition at line 34 of file Sound3D.cpp. References Assert, Lamp::Sound::decibelToVolume(), DirectSound3DBufferInterfaceID, DirectXFailed, ErrorOut, NULL, and Lamp::Vector3::set(). |
|
3D設定の適用 通常はLampSound::presentation()から呼ばれます。 Definition at line 183 of file Sound3D.cpp. Referenced by play(). |
|
3Dサウンドデータのコピー
Definition at line 69 of file Sound3D.cpp. References Lamp::SoundBuffer::copySoundBufferData(). Referenced by Lamp::StaticSound3D::clone(). |
|
コーンの向きの取得
|
|
コーン外側ボリュームの取得
|
|
内側コーン角度の取得
|
|
最大距離の取得
Definition at line 108 of file Sound3D.h. Referenced by Lamp::SoundCache::SoundArray::toString(). |
|
最小距離の取得
Definition at line 96 of file Sound3D.h. Referenced by Lamp::SoundCache::SoundArray::toString(). |
|
外側コーン角度の取得
|
|
位置の取得
|
|
速度の取得
|
|
3Dが有効か
|
|
3Dサウンドかどうか
Reimplemented from Lamp::Sound. |
|
再生
Reimplemented from Lamp::SoundBuffer. Reimplemented in Lamp::StreamSound3D. Definition at line 45 of file Sound3D.h. References apply3DSettings(). Referenced by Lamp::SoundCache::playSound3D(). |
|
リセット
Reimplemented from Lamp::Sound. Definition at line 190 of file Sound3D.cpp. References set3DEnabled(), setConeAngle(), setConeDirection(), setConeOutsideVolume(), setDistance(), setPosition(), and setVelocity(). Referenced by Lamp::SoundCache::playSound3D(). |
|
3Dの有効、無効設定
Definition at line 171 of file Sound3D.cpp. References DirectXFailed, ErrorOut, and u_int. Referenced by reset(). |
|
コーン角度の設定
Definition at line 144 of file Sound3D.cpp. References Assert, DirectXFailed, ErrorOut, and u_int. Referenced by reset(). |
|
コーンの向きの設定
Definition at line 133 of file Sound3D.cpp. References DirectXFailed, ErrorOut, Lamp::Vector3::x, Lamp::Vector3::y, and Lamp::Vector3::z. Referenced by reset(). |
|
コーン外側ボリュームの設定
Definition at line 160 of file Sound3D.cpp. References DirectXFailed, ErrorOut, and Lamp::Sound::volumeToDecibel(). Referenced by reset(). |
|
距離の設定
Definition at line 115 of file Sound3D.h. References Assert, setMaximumDistance(), and setMinimumDistance(). Referenced by Lamp::SoundCache::loadStaticSound3D(), and reset(). |
|
最大距離の設定
Definition at line 121 of file Sound3D.cpp. References Assert, DirectXFailed, and ErrorOut. Referenced by setDistance(). |
|
最小距離の設定
Definition at line 110 of file Sound3D.cpp. References Assert, DirectXFailed, and ErrorOut. Referenced by setDistance(). |
|
位置の設定
Definition at line 76 of file Sound3D.cpp. References DirectXFailed, ErrorOut, Lamp::Vector3::x, Lamp::Vector3::y, and Lamp::Vector3::z. Referenced by Lamp::SoundCache::playSound3D(), reset(), and setPositionAndVelocity(). |
|
位置と速度の設定
Definition at line 96 of file Sound3D.cpp. References Assert, setPosition(), and setVelocity(). |
|
速度の設定
Definition at line 86 of file Sound3D.cpp. References DirectXFailed, ErrorOut, Lamp::Vector3::x, Lamp::Vector3::y, and Lamp::Vector3::z. Referenced by reset(), and setPositionAndVelocity(). |
|
文字列への変換
Reimplemented from Lamp::Sound. Definition at line 206 of file Sound3D.cpp. References Lamp::String::format(), Lamp::SoundBuffer::getBufferSize(), Lamp::Vector3::x, Lamp::Vector3::y, and Lamp::Vector3::z. |