Logo Search packages:      
Sourcecode: scummvm version File versions  Download package

Audio::Infogrames Class Reference

#include <infogrames.h>

Inheritance diagram for Audio::Infogrames:

Audio::Paula Audio::AudioStream

List of all members.


Detailed Description

A player for the Infogrames/RobHubbard2 format

Definition at line 36 of file infogrames.h.


Public Member Functions

void clearVoice (byte voice)
void clearVoices ()
bool endOfData () const
virtual bool endOfStream () const
Instruments * getInstruments (void) const
int getRate () const
bool getRepeating (void) const
 Infogrames (Instruments &ins, bool stereo=false, int rate=44100, int interruptFreq=0)
bool isStereo () const
bool load (const char *dum)
bool load (Common::SeekableReadStream &dum)
void pausePlay (bool pause)
bool playing () const
int readBuffer (int16 *buffer, const int numSamples)
void restart (void)
void setInterruptFreq (int freq)
void setRepeating (int32 repCount)
void startPlay (void)
void stopPlay (void)
void unload (void)

Static Public Member Functions

static AudioStreamopenStreamFile (const Common::String &basename, uint32 startTime=0, uint32 duration=0, uint numLoops=1)

Static Public Attributes

static const int NUM_VOICES = 4

Protected Member Functions

frac_t getChannelOffset (byte channel)
void getNextSample (Channel &chn)
void init (void)
virtual void interrupt (void)
void reset (void)
void setChannelData (uint8 channel, const int8 *data, const int8 *dataRepeat, uint32 length, uint32 lengthRepeat, int32 offset=0)
void setChannelOffset (byte channel, frac_t offset)
void setChannelPanning (byte channel, byte panning)
void setChannelPeriod (byte channel, int16 period)
void setChannelVolume (byte channel, byte volume)
void startPaula ()
void stopPaula ()
int16 tune (Slide &slide, int16 start) const

Protected Attributes

struct Audio::Infogrames::Channel _chn [4]
byte * _cmdBlocks
byte * _data
bool _end
Instruments * _instruments
Common::Mutex _mutex
int16 _period
byte * _periodSlideBlocks
int32 _repCount
uint8 _sample
uint8 _speed
uint8 _speedCounter
byte * _subSong
byte * _volSlideBlocks
uint16 _volume

Static Protected Attributes

static const uint16 periods []
static const uint8 tickCount []

Classes

struct  Channel
class  Instruments
struct  Slide

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

Generated by  Doxygen 1.6.0   Back to index