#include <sound.h>
Public Member Functions | |
virtual void | play () |
virtual void | stop () |
virtual bool | isPlaying () |
virtual uint16 | type ()=0 |
Static Public Member Functions | |
static AgiSound * | createFromRawResource (uint8 *data, uint32 len, int resnum, int soundemu) |
Protected Attributes | |
bool | _isPlaying |
Is the sound playing? | |
bool | _isValid |
Is this a valid sound object? | |
AGI sound resource structure.
|
static |
A named constructor for creating different types of AgiSound objects from a raw sound resource.
NOTE: This function should take responsibility for freeing the raw resource from memory using free() or delegate the responsibility onwards to some other function!