Zap::SFXObject class Reference
Zap::SFXObject Class Reference
#include <sfx.h>
Inheritance diagram for Zap::SFXObject:
|
Public Member Functions |
| SFXObject (U32 profileIndex, ByteBufferPtr samples, F32 gain, Point position, Point velocity) |
| ~SFXObject () |
void | setGain (F32 gain) |
void | play () |
void | stop () |
void | setMovementParams (Point position, Point velocity) |
void | queueBuffer (ByteBufferPtr b) |
bool | isPlaying () |
Static Public Member Functions |
bool | startRecording () |
void | captureSamples (ByteBufferPtr sampleBuffer) |
void | stopRecording () |
void | setMaxDistance (F32 maxDistance) |
void | init () |
void | shutdown () |
void | process () |
void | setListenerParams (Point position, Point velocity) |
RefPtr< SFXObject > | play (U32 profileIndex, F32 gain=1.0f) |
RefPtr< SFXObject > | play (U32 profileIndex, Point position, Point velocity, F32 gain=1.0f) |
RefPtr< SFXObject > | playRecordedBuffer (ByteBufferPtr b, F32 gain=1.0f) |
Private Member Functions |
void | playOnSource () |
void | updateGain () |
void | updateMovementParams () |
Private Attributes |
U32 | mSFXIndex |
Point | mPosition |
Point | mVelocity |
ByteBufferPtr | mInitialBuffer |
SFXProfile * | mProfile |
F32 | mGain |
S32 | mSourceIndex |
F32 | mPriority |
Static Private Attributes |
Point | mListenerPosition |
Point | mListenerVelocity |
F32 | mMaxDistance |
S32 | mCaptureGain |
Constructor & Destructor Documentation
Member Function Documentation
void Zap::SFXObject::playOnSource |
( |
|
) |
[private] |
|
void Zap::SFXObject::updateGain |
( |
|
) |
[private] |
|
void Zap::SFXObject::updateMovementParams |
( |
|
) |
[private] |
|
void Zap::SFXObject::setGain |
( |
F32 |
gain |
) |
|
|
void Zap::SFXObject::play |
( |
|
) |
|
|
void Zap::SFXObject::stop |
( |
|
) |
|
|
void Zap::SFXObject::setMovementParams |
( |
Point |
position, |
|
|
Point |
velocity |
|
) |
|
|
bool Zap::SFXObject::isPlaying |
( |
|
) |
[inline] |
|
bool Zap::SFXObject::startRecording |
( |
|
) |
[static] |
|
void Zap::SFXObject::captureSamples |
( |
ByteBufferPtr |
sampleBuffer |
) |
[static] |
|
void Zap::SFXObject::stopRecording |
( |
|
) |
[static] |
|
void Zap::SFXObject::setMaxDistance |
( |
F32 |
maxDistance |
) |
[static] |
|
void Zap::SFXObject::init |
( |
|
) |
[static] |
|
void Zap::SFXObject::shutdown |
( |
|
) |
[static] |
|
void Zap::SFXObject::process |
( |
|
) |
[static] |
|
void Zap::SFXObject::setListenerParams |
( |
Point |
position, |
|
|
Point |
velocity |
|
) |
[static] |
|
Field Documentation