TalanSoft Toolkits  201707
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Groups Pages
Public Member Functions | List of all members
iSoundBuffer Struct Referenceabstract
Inheritance diagram for iSoundBuffer:
iDeviceResource iUnknown

Detailed Description

Sound buffer interface.

Public Member Functions

virtual iSoundBufferCreateInstance ()=0
 Create an instance of this sound buffer. More...
 
virtual tBool GetIsInstance () const =0
 Get whether the sound buffer is an instance. {Property}. More...
 
virtual tBool GetIsStreamed () const =0
 Get whether the sound is streamed. {Property}. More...
 
virtual eSoundFormat GetFormat () const =0
 Get the sound buffer's format. {Property}. More...
 
virtual tU32 GetFrequency () const =0
 Get the sound buffer frequency. {Property}. More...
 
virtual iSoundDataGetStreamSoundData () const =0
 Get the streamed sound data. {Property}. More...
 
virtual void ResetPosition ()=0
 Reset the sound buffer position. More...
 
virtual tBool ReadRaw (tPtr apOut, tU32 anBytes, tBool abLoop)=0
 Retrieve data in the sound buffer. More...
 
- Public Member Functions inherited from iDeviceResource
virtual iHStringGetDeviceResourceName () 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 iDeviceResourceBind (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 iUnknownQueryInterface (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...
 

Member Function Documentation

virtual iSoundBuffer* CreateInstance ( )
pure virtual

Create an instance of this sound buffer.

virtual tBool GetIsInstance ( ) const
pure virtual

Get whether the sound buffer is an instance. {Property}.

virtual tBool GetIsStreamed ( ) const
pure virtual

Get whether the sound is streamed. {Property}.

virtual eSoundFormat GetFormat ( ) const
pure virtual

Get the sound buffer's format. {Property}.

virtual tU32 GetFrequency ( ) const
pure virtual

Get the sound buffer frequency. {Property}.

virtual iSoundData* GetStreamSoundData ( ) const
pure virtual

Get the streamed sound data. {Property}.

virtual void ResetPosition ( )
pure virtual

Reset the sound buffer position.

virtual tBool ReadRaw ( tPtr  apOut,
tU32  anBytes,
tBool  abLoop 
)
pure virtual

Retrieve data in the sound buffer.