ScummVM API documentation
Awe::SfxPlayer Struct Reference

Public Types

enum  { NUM_CHANNELS = 4 }
 

Public Member Functions

 SfxPlayer (Resource *res)
 
void setEventsDelay (uint16 delay)
 
void loadSfxModule (uint16 resNum, uint16 delay, uint8 pos)
 
void prepareInstruments (const uint8 *p)
 
void play (int rate)
 
void mixSamples (int16 *buf, int len)
 
void readSamples (int16 *buf, int len)
 
void start ()
 
void stop ()
 
void handleEvents ()
 
void handlePattern (uint8 channel, const uint8 *patternData)
 

Public Attributes

Resource_res
 
uint16 _delay = 0
 
uint16 _resNum = 0
 
SfxModule _sfxMod
 
int16 * _syncVar = nullptr
 
bool _playing = false
 
int _rate = 0
 
int _samplesLeft = 0
 
SfxChannel _channels [NUM_CHANNELS]
 

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