Sound source interface.
Public Member Functions | |
| virtual tBool | SetSoundBuffer (iSoundBuffer *apBuffer)=0 |
| Set the sound buffer. More... | |
| virtual iSoundBuffer * | GetSoundBuffer () const =0 |
| Get the sound buffer. {Property}. More... | |
| virtual void | SetMode (eSoundMode aMode)=0 |
| Set the sound mode. More... | |
| virtual eSoundMode | GetMode () const =0 |
| Get the sound mode. {Property}. More... | |
| virtual void | SetPosition (const sVec3f &avPos)=0 |
| Set the source's position. More... | |
| virtual sVec3f | GetPosition () const =0 |
| Get the source's position. {Property}. More... | |
| virtual void | SetVelocity (const sVec3f &avVel)=0 |
| Set the source's velocity. More... | |
| virtual sVec3f | GetVelocity () const =0 |
| Get the source's velocity. {Property}. More... | |
| virtual void | SetMinDistance (tF32 fMin)=0 |
| Set the minimum audible distance. More... | |
| virtual tF32 | GetMinDistance () const =0 |
| Get the minimum audible distance. More... | |
| virtual void | SetMaxDistance (tF32 fMax)=0 |
| Set the maximum audible distance. More... | |
| virtual tF32 | GetMaxDistance () const =0 |
| Get the maximum audible distance. {Property}. More... | |
| virtual void | SetPan (tF32 afPanning)=0 |
| Set the sound panning. More... | |
| virtual tF32 | GetPan () const =0 |
| Get the sound volume. {Property}. More... | |
| virtual void | SetVolume (tF32 afVolume)=0 |
| Set the sound volume. More... | |
| virtual tF32 | GetVolume () const =0 |
| Get the sound volume. {Property}. More... | |
| virtual void | SetSpeed (tF32 afPitch)=0 |
| Set the sound speed. More... | |
| virtual tF32 | GetSpeed () const =0 |
| Get the sound speed. {Property}. More... | |
| virtual void | SetLoop (tBool abLoop)=0 |
| Set the source in loop mode. More... | |
| virtual tBool | GetLoop () const =0 |
| Get the source loop mode. {Property}. More... | |
| virtual tBool | Play ()=0 |
| Starts playing the sound. More... | |
| virtual tBool | Stop ()=0 |
| Stops playing the sound. More... | |
| virtual tBool | Pause ()=0 |
| Pause the sound. More... | |
| virtual tBool | GetIsPlaying () const =0 |
| Check if the sound is currently playing. {Property}. More... | |
| virtual tBool | GetIsPaused () const =0 |
| Check if the sound is currently paused. {Property}. More... | |
| virtual ni::tBool | Play2D (ni::tF32 afVolume, ni::tF32 afSpeed, ni::tF32 afPan)=0 |
| Play as a 2d sound FX. More... | |
| virtual ni::tBool | Play3D (ni::tF32 afVolume, ni::tF32 afSpeed, ni::sVec3f avPosition, ni::tBool abListenerRelative, ni::tF32 afMinDistance, ni::tF32 afMaxDistance)=0 |
| Play as a 3d sound FX. More... | |
Public Member Functions inherited from iDeviceResource | |
| virtual iHString * | GetDeviceResourceName () const =0 |
| Get the resource's name. More... | |
| virtual tBool | HasDeviceResourceBeenReset (tBool abClearFlag)=0 |
| Check whether the device resource has just been reset. More... | |
| virtual tBool | ResetDeviceResource ()=0 |
| Reset the device resource. More... | |
| virtual iDeviceResource * | Bind (iUnknown *apDevice)=0 |
| Called when the resource is going to be used by the device. More... | |
Public Member Functions inherited from iUnknown | |
| virtual tBool | IsOK () const =0 |
| Check if the object is valid. More... | |
| virtual tI32 | AddRef ()=0 |
| Signal that one more reference of the object has been created. More... | |
| virtual tI32 | Release ()=0 |
| Release a reference of the object. More... | |
| virtual void | DeleteThis ()=0 |
| Bypass any reference counting and delete this object. More... | |
| virtual void | Invalidate ()=0 |
| Invalidate the object. More... | |
| virtual iUnknown * | QueryInterface (const tUUID &aIID)=0 |
| Query an interface. More... | |
| virtual void | ListInterfaces (iMutableCollection *apLst, tU32 anFlags) const =0 |
| Fill a UUID list containing the UUIDs of the implemented interfaces. More... | |
| virtual tI32 | SetNumRefs (tI32 anNumRefs)=0 |
| Set the reference counter directly. More... | |
| virtual tI32 | GetNumRefs () const =0 |
| Get the number of references to this object. More... | |
|
pure virtual |
Set the sound buffer.
|
pure virtual |
Get the sound buffer. {Property}.
|
pure virtual |
Set the sound mode.
|
pure virtual |
Get the sound mode. {Property}.
Set the source's position.
|
pure virtual |
Get the source's position. {Property}.
Set the source's velocity.
|
pure virtual |
Get the source's velocity. {Property}.
Set the minimum audible distance.
|
pure virtual |
Get the minimum audible distance.
Set the maximum audible distance.
|
pure virtual |
Get the maximum audible distance. {Property}.
Set the sound panning.
|
pure virtual |
Get the sound volume. {Property}.
Set the sound volume.
|
pure virtual |
Get the sound volume. {Property}.
Set the sound speed.
|
pure virtual |
Get the sound speed. {Property}.
Set the source in loop mode.
|
pure virtual |
Get the source loop mode. {Property}.
|
pure virtual |
Starts playing the sound.
|
pure virtual |
Stops playing the sound.
|
pure virtual |
Pause the sound.
|
pure virtual |
Check if the sound is currently playing. {Property}.
|
pure virtual |
Check if the sound is currently paused. {Property}.
Play as a 2d sound FX.
1.8.7