#include <SoundBuffer.h>
Inheritance diagram for Lamp::SoundBuffer:

Public Member Functions | |
| virtual void | setName (const String &name) |
| 名前の設定 | |
| virtual const String & | getName () const |
| 名前の取得 | |
| virtual u_int | getSize () const |
| サイズの取得 | |
| virtual int | getSample () const |
| サンプル数の取得 | |
| virtual int | getChannel () const |
| チャンネル数の取得 | |
| virtual int | getBit () const |
| ビット数の取得 | |
| virtual Focus | getFocus () const |
| フォーカスの取得 | |
| virtual u_int | getBufferSize () const |
| バッファサイズの取得 | |
| virtual bool | play () |
| 再生 | |
| virtual void | stop () |
| 停止 | |
| virtual void | suspend () |
| 再生の一時停止 | |
| virtual bool | resume () |
| 再生再開 | |
| virtual State | getState () const |
| 状態の取得 | |
| virtual void | setCursor (u_int cursor) |
| 再生位置設定 | |
| virtual u_int | getCursor () const |
| 再生位置取得 | |
| virtual void | setPriority (int priority) |
| 優先度の設定 | |
| virtual int | getPriority () const |
| 優先度の取得 | |
| virtual void | setLoop (bool loop) |
| ループの設定 | |
| virtual bool | isLoop () const |
| ループしているか | |
| virtual void | setVolume (float volume) |
| ボリュームの設定 | |
| virtual float | getVolume () const |
| ボリュームの取得 | |
| virtual void | setFrequency (int frequency) |
| 周波数の設定 | |
| virtual int | getFrequency () const |
| 周波数の取得 | |
| virtual void | setOriginalFrequency () |
| オリジナル周波数の設定 | |
| virtual void | fadeIn (float millisecond) |
| フェードイン | |
| virtual void | fadeOut (float millisecond) |
| フェードアウト | |
| virtual void | fade (float millisecond, float startVolume, float endVolume) |
| フェード | |
| virtual bool | isFading () const |
| フェード中かどうか | |
| virtual void | setComment (const String &comment) |
| コメントの設定 | |
| virtual const String & | getComment () const |
| コメントの取得 | |
| virtual bool | hasOwnership () const |
| 所有権があるか | |
| virtual Lock & | lock () |
| ロック | |
| virtual Lock & | lock (u_int offset, u_int bytes) |
| ロック | |
| virtual void | unlock () |
| アンロック | |
| virtual bool | isSoundBuffer () const |
| サウンドバッファかどうか | |
Protected Member Functions | |
| SoundBuffer (DirectSoundBuffer *soundBuffer) | |
| コンストラクタ | |
| virtual | ~SoundBuffer () |
| デストラクタ | |
| virtual void | initialize (u_int size, int sample, int channel, int bit, Focus focus) |
| 初期化 | |
| virtual void | copySoundBufferData (SoundBuffer *destination) |
| サウンドバッファデータのコピー | |
| virtual bool | update () |
| アップデート | |
| DirectSoundBuffer * | getSoundBuffer () |
| サウンドバッファの取得 | |
| virtual void | setOwnership (bool ownership) |
| 所有権の設定 | |
| virtual bool | playBuffer () |
| バッファの再生 | |
| virtual void | stopBuffer () |
| バッファの停止 | |
| virtual u_int | getPlayFlag ()=0 |
| 再生フラグの取得 | |
| virtual int | getBufferFrequency () const |
| バッファ周波数の取得 | |
Friends | |
| class | StreamPlayer |
Definition at line 37 of file SoundBuffer.h.
|
|
コンストラクタ
Definition at line 37 of file SoundBuffer.cpp. References Lamp::SoundBuffer::Lock::clear(), Lamp::Sound::decibelToVolume(), DirectXFailed, ErrorOut, getBufferFrequency(), Lamp::Sound::priorityDefault, setLoop(), setOwnership(), and setPriority(). |
|
|
サウンドバッファデータのコピー
Definition at line 74 of file SoundBuffer.cpp. References getBit(), getBufferSize(), getChannel(), getFocus(), getName(), getPriority(), getSample(), initialize(), isLoop(), setLoop(), setName(), and setPriority(). Referenced by Lamp::Sound3D::copySound3DData(), and Lamp::StereoSound::copyStereoSoundData(). |
|
||||||||||||||||
|
フェード
Implements Lamp::Sound. Definition at line 235 of file SoundBuffer.cpp. References Assert, play(), and setVolume(). |
|
|
フェードイン
Implements Lamp::Sound. Definition at line 217 of file SoundBuffer.h. References fade(). |
|
|
フェードアウト
Implements Lamp::Sound. Definition at line 225 of file SoundBuffer.h. References fade(), and getVolume(). |
|
|
ビット数の取得
Implements Lamp::Sound. Definition at line 78 of file SoundBuffer.h. Referenced by copySoundBufferData(), and Lamp::StreamPlayer::writeStream(). |
|
|
バッファ周波数の取得
Definition at line 221 of file SoundBuffer.cpp. References Assert, DirectXFailed, ErrorOut, and u_long. Referenced by setOriginalFrequency(), and SoundBuffer(). |
|
|
バッファサイズの取得
Definition at line 90 of file SoundBuffer.h. References u_int. Referenced by copySoundBufferData(), Lamp::StreamPlayer::initialize(), Lamp::StreamSound3D::setSoundReader(), Lamp::StreamSound::setSoundReader(), Lamp::StereoSound::toString(), Lamp::Sound3D::toString(), and Lamp::StreamPlayer::writeStream(). |
|
|
チャンネル数の取得
Implements Lamp::Sound. Definition at line 72 of file SoundBuffer.h. Referenced by copySoundBufferData(). |
|
|
コメントの取得
Implements Lamp::Sound. Definition at line 256 of file SoundBuffer.h. |
|
|
再生位置取得
Implements Lamp::Sound. Reimplemented in Lamp::StreamSound3D, and Lamp::StreamSound. Definition at line 179 of file SoundBuffer.cpp. References DirectXFailed, ErrorOut, NULL, u_int, and u_long. |
|
|
フォーカスの取得
Implements Lamp::Sound. Definition at line 84 of file SoundBuffer.h. References Lamp::Sound::Focus. Referenced by copySoundBufferData(). |
|
|
周波数の取得
Implements Lamp::Sound. Definition at line 203 of file SoundBuffer.h. |
|
|
名前の取得
Implements Lamp::Sound. Definition at line 53 of file SoundBuffer.h. Referenced by copySoundBufferData(). |
|
|
再生フラグの取得
Implemented in Lamp::StaticSound3D, Lamp::StreamSound3D, Lamp::StaticSound, and Lamp::StreamSound. Referenced by playBuffer(). |
|
|
優先度の取得
Implements Lamp::Sound. Definition at line 156 of file SoundBuffer.h. Referenced by copySoundBufferData(), and playBuffer(). |
|
|
サンプル数の取得
Implements Lamp::Sound. Definition at line 66 of file SoundBuffer.h. Referenced by copySoundBufferData(). |
|
|
サイズの取得
Implements Lamp::Sound. Reimplemented in Lamp::StreamSound3D, and Lamp::StreamSound. Definition at line 60 of file SoundBuffer.h. References u_int. Referenced by setCursor(), and Lamp::StreamPlayer::writeStream(). |
|
|
サウンドバッファの取得
Definition at line 403 of file SoundBuffer.h. References DirectSoundBuffer. Referenced by Lamp::StreamPlayer::initialize(), and Lamp::StereoSound::setPan(). |
|
|
ボリュームの取得
Implements Lamp::Sound. Definition at line 188 of file SoundBuffer.h. Referenced by fadeOut(). |
|
|
所有権があるか
Implements Lamp::Sound. Definition at line 265 of file SoundBuffer.h. |
|
||||||||||||||||||||||||
|
初期化
Definition at line 56 of file SoundBuffer.cpp. Referenced by copySoundBufferData(), Lamp::SoundManager::createStaticSound(), Lamp::SoundManager::createStaticSound3D(), Lamp::SoundManager::createStreamSound(), and Lamp::SoundManager::createStreamSound3D(). |
|
|
フェード中かどうか
Implements Lamp::Sound. Definition at line 241 of file SoundBuffer.h. Referenced by update(). |
|
|
ループしているか
Implements Lamp::Sound. Definition at line 173 of file SoundBuffer.h. Referenced by copySoundBufferData(), Lamp::StaticSound3D::getPlayFlag(), Lamp::StaticSound::getPlayFlag(), and Lamp::StreamPlayer::writeStream(). |
|
|
サウンドバッファかどうか
Reimplemented from Lamp::Sound. Definition at line 355 of file SoundBuffer.h. |
|
||||||||||||
|
ロック 失敗した場合、Lock::isValid()がfalseを返します。
Definition at line 293 of file SoundBuffer.cpp. References Lamp::SoundBuffer::Lock::address0_, Lamp::SoundBuffer::Lock::address1_, Assert, Lamp::SoundBuffer::Lock::clear(), DirectXFailed, DirectXSucceeded, ErrorOut, Lamp::SoundBuffer::Lock::isValid(), Lamp::SoundBuffer::Lock::size0_, and Lamp::SoundBuffer::Lock::size1_. |
|
|
ロック バッファ全体をロックします。失敗した場合、Lock::isValid()がfalseを返します。
Definition at line 272 of file SoundBuffer.cpp. References Lamp::SoundBuffer::Lock::address0_, Assert, Lamp::SoundBuffer::Lock::clear(), DirectXFailed, DirectXSucceeded, ErrorOut, Lamp::SoundBuffer::Lock::isValid(), NULL, and Lamp::SoundBuffer::Lock::size0_. Referenced by Lamp::StreamPlayer::writeStream(). |
|
|
再生
Implements Lamp::Sound. Reimplemented in Lamp::Sound3D, Lamp::StreamSound3D, and Lamp::StreamSound. Definition at line 85 of file SoundBuffer.cpp. References playBuffer(). Referenced by fade(), and Lamp::SoundCache::playStereoSound(). |
|
|
バッファの再生
Definition at line 140 of file SoundBuffer.cpp. References Assert, DirectXFailed, DirectXSucceeded, ErrorOut, getPlayFlag(), getPriority(), and u_int. |
|
|
再生再開
Implements Lamp::Sound. Definition at line 108 of file SoundBuffer.cpp. References getState(), playBuffer(), Lamp::Sound::State, and Lamp::Sound::stateStop. |
|
|
コメントの設定
Implements Lamp::Sound. Definition at line 250 of file SoundBuffer.h. |
|
|
再生位置設定
Implements Lamp::Sound. Reimplemented in Lamp::StreamSound3D, and Lamp::StreamSound. Definition at line 171 of file SoundBuffer.cpp. References Assert, DirectXFailed, ErrorOut, and getSize(). Referenced by stop(). |
|
|
周波数の設定
Implements Lamp::Sound. Definition at line 202 of file SoundBuffer.cpp. References Assert, DirectXFailed, and ErrorOut. Referenced by Lamp::SoundCache::playSound3D(), and Lamp::SoundCache::playStereoSound(). |
|
|
ループの設定 ループは次回再生時に適用される
Implements Lamp::Sound. Definition at line 167 of file SoundBuffer.h. Referenced by copySoundBufferData(), Lamp::SoundCache::loadStaticSound(), Lamp::SoundCache::loadStaticSound3D(), and SoundBuffer(). |
|
|
名前の設定
Implements Lamp::Sound. Definition at line 47 of file SoundBuffer.h. Referenced by copySoundBufferData(). |
|
|
所有権の設定
Implements Lamp::Sound. Definition at line 410 of file SoundBuffer.h. Referenced by SoundBuffer(). |
|
|
優先度の設定 優先度は次回再生時に適用される
Implements Lamp::Sound. Definition at line 146 of file SoundBuffer.h. References Assert, Lamp::Sound::priorityMax, and Lamp::Sound::priorityMin. Referenced by copySoundBufferData(), Lamp::SoundCache::loadStaticSound(), Lamp::SoundCache::loadStaticSound3D(), and SoundBuffer(). |
|
|
ボリュームの設定
Implements Lamp::Sound. Definition at line 190 of file SoundBuffer.cpp. References DirectXFailed, ErrorOut, and Lamp::Sound::volumeToDecibel(). Referenced by fade(), Lamp::SoundCache::playSound3D(), Lamp::SoundCache::playStereoSound(), and update(). |
|
|
アップデート
Implements Lamp::Sound. Definition at line 253 of file SoundBuffer.cpp. References Assert, isFading(), setVolume(), and stop(). |
1.3.2