ScummVM API documentation
Agi::AgiSound Class Reference

#include <sound.h>

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

Public Member Functions

 AgiSound (byte resourceNr, byte *data, uint32 length, uint16 type)
 
virtual void play ()
 
virtual void stop ()
 
virtual bool isPlaying ()
 
byte * getData ()
 
uint32 getLength ()
 
virtual uint16 type ()
 
virtual bool isValid ()
 

Static Public Member Functions

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

Protected Attributes

byte _resourceNr
 
byte * _data
 
uint32 _length
 
uint16 _type
 
bool _isPlaying
 

Detailed Description

AGI sound resource structure.

Member Function Documentation

◆ createFromRawResource()

static AgiSound* Agi::AgiSound::createFromRawResource ( uint8 *  data,
uint32  len,
int  resnum,
int  soundemu,
bool  isAgiV1 
)
static

A named constructor for creating different types of AgiSound objects from a raw sound resource.


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