ScummVM API documentation
Agi::AgiSound Class Referenceabstract

#include <sound.h>

Inheritance diagram for Agi::AgiSound:
Agi::IIgsMidi Agi::IIgsSample Agi::MIDISound Agi::PCjrSound

Public Member Functions

virtual void play ()
 
virtual void stop ()
 
virtual bool isPlaying ()
 
virtual uint16 type ()=0
 

Static Public Member Functions

static AgiSoundcreateFromRawResource (uint8 *data, uint32 len, int resnum, int soundemu)
 

Protected Attributes

bool _isPlaying
 Is the sound playing?
 
bool _isValid
 Is this a valid sound object?
 

Detailed Description

AGI sound resource structure.

Member Function Documentation

◆ createFromRawResource()

static AgiSound* Agi::AgiSound::createFromRawResource ( uint8 *  data,
uint32  len,
int  resnum,
int  soundemu 
)
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!


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