Main Page | Namespace List | Class Hierarchy | Alphabetical List | Compound List | File List | Namespace Members | Compound Members | File Members

Lamp::StreamSound Class Reference

ストリームサウンド More...

#include <StreamSound.h>

Inheritance diagram for Lamp::StreamSound:

Lamp::StereoSound Lamp::SoundBuffer Lamp::Sound List of all members.

Public Member Functions

virtual SoundReadergetSoundReader ()
 サウンドリーダの取得

virtual StreamPlayergetStreamPlayer ()
 ストリームプレーヤの取得

virtual u_int getSize () const
 サイズの取得

virtual bool play ()
 再生

virtual void stop ()
 停止

virtual void setCursor (u_int cursor)
 再生位置設定

virtual u_int getCursor () const
 再生位置取得

virtual void setLoopCursor (u_int loopCursor)
 ループ位置の設定

virtual u_int getLoopCursor () const
 ループ位置の取得

virtual bool useStream () const
 ストリームを使用しているか

virtual bool isStreamSound () const
 ストリームサウンドかどうか


Protected Member Functions

 StreamSound (DirectSoundBuffer *soundBuffer)
 コンストラクタ

virtual ~StreamSound ()
 デストラクタ

virtual void setSoundReader (SoundReader *soundReader)
 サウンドリーダの設定

virtual u_int getPlayFlag ()
 再生フラグの取得


Friends

class SoundManager

Detailed Description

ストリームサウンド

Definition at line 40 of file StreamSound.h.


Constructor & Destructor Documentation

Lamp::StreamSound::StreamSound DirectSoundBuffer soundBuffer  )  [protected]
 

コンストラクタ

Parameters:
soundBuffer サウンドバッファ

Definition at line 36 of file StreamSound.cpp.

References NULL.


Member Function Documentation

u_int Lamp::StreamSound::getCursor  )  const [virtual]
 

再生位置取得

Returns:
再生位置のバイト数

Reimplemented from Lamp::SoundBuffer.

Definition at line 83 of file StreamSound.cpp.

References Assert, Lamp::StreamPlayer::getCursor(), NULL, and u_int.

u_int Lamp::StreamSound::getLoopCursor  )  const [virtual]
 

ループ位置の取得

Returns:
ループ位置のバイト数

Reimplemented from Lamp::Sound.

Definition at line 97 of file StreamSound.cpp.

References Assert, Lamp::StreamPlayer::getLoopCursor(), NULL, and u_int.

virtual u_int Lamp::StreamSound::getPlayFlag  )  [inline, protected, virtual]
 

再生フラグの取得

Returns:
再生フラグ

Implements Lamp::SoundBuffer.

Definition at line 153 of file StreamSound.h.

References u_int.

u_int Lamp::StreamSound::getSize  )  const [virtual]
 

サイズの取得

Returns:
サイズ

Reimplemented from Lamp::SoundBuffer.

Definition at line 59 of file StreamSound.cpp.

References Assert, Lamp::SoundReader::getSize(), NULL, and u_int.

Referenced by setSoundReader().

virtual SoundReader* Lamp::StreamSound::getSoundReader  )  [inline, virtual]
 

サウンドリーダの取得

Returns:
サウンドリーダ

Definition at line 50 of file StreamSound.h.

virtual StreamPlayer* Lamp::StreamSound::getStreamPlayer  )  [inline, virtual]
 

ストリームプレーヤの取得

Returns:
ストリームプレーヤ

Definition at line 56 of file StreamSound.h.

virtual bool Lamp::StreamSound::isStreamSound  )  const [inline, virtual]
 

ストリームサウンドかどうか

Returns:
ストリームサウンドならtrue

Reimplemented from Lamp::Sound.

Definition at line 125 of file StreamSound.h.

virtual bool Lamp::StreamSound::play  )  [inline, virtual]
 

再生

Returns:
正常に再生されればtrue

Reimplemented from Lamp::SoundBuffer.

Definition at line 72 of file StreamSound.h.

References Assert, and NULL.

void Lamp::StreamSound::setCursor u_int  cursor  )  [virtual]
 

再生位置設定

Parameters:
cursor 再生位置のバイト数

Reimplemented from Lamp::SoundBuffer.

Definition at line 77 of file StreamSound.cpp.

References Assert, NULL, and Lamp::StreamPlayer::setCursor().

void Lamp::StreamSound::setLoopCursor u_int  loopCursor  )  [virtual]
 

ループ位置の設定

Parameters:
loopCursor ループ位置をバイト数で指定

Reimplemented from Lamp::Sound.

Definition at line 91 of file StreamSound.cpp.

References Assert, NULL, and Lamp::StreamPlayer::setLoopCursor().

void Lamp::StreamSound::setSoundReader SoundReader soundReader  )  [protected, virtual]
 

サウンドリーダの設定

Parameters:
soundReader サウンドリーダ、ストリームサウンドによってdeleteされる。

Definition at line 47 of file StreamSound.cpp.

References Assert, Lamp::SoundBuffer::getBufferSize(), getSize(), Lamp::StreamPlayer::initialize(), and NULL.

virtual bool Lamp::StreamSound::useStream  )  const [inline, virtual]
 

ストリームを使用しているか

Returns:
ストリームを使用しているtrue

Reimplemented from Lamp::Sound.

Definition at line 119 of file StreamSound.h.


The documentation for this class was generated from the following files:
Generated on Wed Mar 16 10:29:52 2005 for Lamp by doxygen 1.3.2