Wasabi
Classes | Public Member Functions | Static Public Member Functions | List of all members
WOpenALSound Class Reference
Inheritance diagram for WOpenALSound:
WSound WFileAsset WBase

Public Member Functions

virtual std::string GetTypeName () const override
 
virtual void SetID (uint32_t newID) override
 
virtual void SetName (std::string newName) override
 
 WOpenALSound (class Wasabi *const app, uint32_t ID=0)
 
virtual bool Valid () const override
 
virtual WError LoadWAV (std::string Filename, uint32_t buffer, bool bSaveData=false) override
 
WError LoadFromMemory (uint32_t buffer, void *data, size_t dataSize, int format, uint32_t frequency, bool bSaveData=false)
 
virtual void Play () override
 
virtual void Loop () override
 
virtual void Pause () override
 
virtual void Reset () override
 
virtual void SetTime (uint32_t time) override
 
virtual bool Playing () const override
 
virtual bool Looping () const override
 
virtual void SetVolume (float volume) override
 
virtual void SetPitch (int pitch) override
 
virtual void SetFrequency (uint32_t buffer, uint32_t frequency) override
 
virtual uint32_t GetNumChannels (uint32_t buffer) const override
 
virtual uint32_t GetBitDepth (uint32_t buffer) const override
 
uint32_t GetALBuffer (uint32_t buffer) const
 
uint32_t GetALSource () const
 
virtual void SetPosition (float x, float y, float z) override
 
virtual void SetPosition (WVector3 pos) override
 
virtual void SetPosition (WOrientation *pos) override
 
virtual void SetVelocity (float x, float y, float z) override
 
virtual void SetVelocity (WVector3 vel) override
 
virtual void SetDirection (WVector3 look) override
 
virtual void SetDirection (class WOrientation *look) override
 
virtual void SetToOrientation (class WOrientation *oriDev) override
 
virtual WError SaveToStream (WFile *file, std::ostream &outputStream) override
 
virtual WError LoadFromStream (WFile *file, std::istream &inputStream, std::vector< void * > &args, std::string nameSuffix) override
 
- Public Member Functions inherited from WSound
 WSound (Wasabi *const app, uint32_t ID=0)
 
- Public Member Functions inherited from WFileAsset
 WFileAsset (class Wasabi *const app, uint32_t ID=0)
 
virtual WError LoadFromStream (class WFile *file, std::istream &inputStream, vector< void * > &args, std::string nameSuffix)=0
 
- Public Member Functions inherited from WBase
 WBase (class Wasabi *const app, uint32_t ID=0)
 
uint32_t GetID () const
 
std::string GetName () const
 
class WasabiGetAppPtr () const
 
void AddReference ()
 
void RemoveReference ()
 

Static Public Member Functions

static std::string _GetTypeName ()
 
static std::vector< void * > LoadArgs ()
 

Additional Inherited Members

- Protected Attributes inherited from WBase
class Wasabim_app
 
uint32_t m_ID
 
std::string m_name
 

Member Function Documentation

◆ GetTypeName()

virtual std::string WOpenALSound::GetTypeName ( ) const
overridevirtual

This function must be implemented by a child class. This is used for debugging, in which a class should return its name.

Returns
The name of the class

Implements WBase.

◆ SetID()

virtual void WOpenALSound::SetID ( uint32_t  newID)
overridevirtual

Sets the ID of this object and notifies its manager.

Parameters
newIDNew ID

Implements WBase.

◆ SetName()

virtual void WOpenALSound::SetName ( std::string  newName)
overridevirtual

Sets the name of this object.

Parameters
nameNew name for the object

Implements WBase.

◆ Valid()

virtual bool WOpenALSound::Valid ( ) const
overridevirtual

Must be implemented by the child. This function should report the validity status of the object, in whatever sense of "validity" it chooses.

Returns
true if the object is "valid", false otherwise

Implements WBase.


The documentation for this class was generated from the following file: