ScummVM API documentation
Audio::Infogrames Class Reference

#include <infogrames.h>

Inheritance diagram for Audio::Infogrames:
Audio::Paula Audio::AudioStream

Classes

struct  Channel
 
class  Instruments
 
struct  Slide
 

Public Member Functions

 Infogrames (Instruments &ins, bool stereo=false, int rate=44100, int interruptFreq=0)
 
InstrumentsgetInstruments () const
 
bool getRepeating () const
 
void setRepeating (int32 repCount)
 
bool load (Common::SeekableReadStream &dum)
 
bool load (const char *dum)
 
void unload ()
 
void restart ()
 
- Public Member Functions inherited from Audio::Paula
 Paula (bool stereo=false, int rate=44100, uint interruptFreq=0, FilterMode filterMode=kFilterModeDefault, int periodScaleDivisor=1)
 
bool playing () const
 
void setTimerBaseValue (uint32 ticksPerSecond)
 
uint32 getTimerBaseValue ()
 
void setSingleInterrupt (uint sampleDelay)
 
void setSingleInterruptUnscaled (uint timerDelay)
 
void setInterruptFreq (uint sampleDelay)
 
void setInterruptFreqUnscaled (uint timerDelay)
 
void clearVoice (byte voice)
 
void clearVoices ()
 
void startPlay ()
 
void stopPlay ()
 
void pausePlay (bool pause)
 
int readBuffer (int16 *buffer, const int numSamples)
 
bool isStereo () const
 
bool endOfData () const
 
int getRate () const
 
- Public Member Functions inherited from Audio::AudioStream
virtual bool endOfStream () const
 

Protected Member Functions

void init ()
 
void reset ()
 
void getNextSample (Channel &chn)
 
int16 tune (Slide &slide, int16 start) const
 
virtual void interrupt ()
 
- Protected Member Functions inherited from Audio::Paula
virtual void interruptChannel (byte channel)
 
void startPaula ()
 
void stopPaula ()
 
void setChannelPanning (byte channel, byte panning)
 
void disableChannel (byte channel)
 
void enableChannel (byte channel)
 
void setChannelInterrupt (byte channel, bool enable)
 
void setChannelPeriod (byte channel, int16 period)
 
void setChannelVolume (byte channel, byte volume)
 
void setChannelSampleStart (byte channel, const int8 *data)
 
void setChannelSampleLen (byte channel, uint32 length)
 
void setChannelData (uint8 channel, const int8 *data, const int8 *dataRepeat, uint32 length, uint32 lengthRepeat, int32 offset=0)
 
void setChannelOffset (byte channel, Offset offset)
 
Offset getChannelOffset (byte channel)
 
int getChannelDmaCount (byte channel)
 
void setChannelDmaCount (byte channel, int dmaVal=0)
 
void setAudioFilter (bool enable)
 

Protected Attributes

Instruments_instruments
 
byte * _data
 
int32 _repCount
 
byte * _subSong
 
byte * _cmdBlocks
 
byte * _volSlideBlocks
 
byte * _periodSlideBlocks
 
uint8 _speedCounter
 
uint8 _speed
 
uint16 _volume
 
int16 _period
 
uint8 _sample
 
struct Audio::Infogrames::Channel _chn [4]
 
- Protected Attributes inherited from Audio::Paula
bool _end
 
Common::Mutex_mutex
 

Static Protected Attributes

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

Additional Inherited Members

- Public Types inherited from Audio::Paula
enum  {
  kPalSystemClock = 7093790, kNtscSystemClock = 7159090, kPalCiaClock = kPalSystemClock / 10, kNtscCiaClock = kNtscSystemClock / 10,
  kPalPaulaClock = kPalSystemClock / 2, kNtscPaulaClock = kNtscSystemClock / 2
}
 
enum  FilterMode { kFilterModeNone = 0, kFilterModeA500, kFilterModeA1200, kFilterModeDefault = kFilterModeA1200 }
 
- Static Public Attributes inherited from Audio::Paula
static const int NUM_VOICES = 4
 
static const int PANNING_LEFT = 63
 
static const int PANNING_RIGHT = 191
 

Detailed Description

A player for the Infogrames/RobHubbard2 format


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