ScummVM API documentation
Agi::IIgsInstrumentHeader Struct Reference

Public Member Functions

bool read (Common::SeekableReadStream &stream, bool ignoreAddr=false)
 
bool finalize (int8 *wavetable, uint32 wavetableSize)
 

Public Attributes

struct {
   frac_t   bp
 Envelope segment breakpoint.
 
   frac_t   inc
 Envelope segment velocity.
 
env [8]
 
uint8 seg
 Envelope release segment.
 
uint8 bend
 Maximum range for pitch bend.
 
uint8 vibDepth
 Vibrato depth.
 
uint8 vibSpeed
 Vibrato speed.
 
uint8 waveCount [2]
 Wave count for both generators.
 
struct {
   uint8   key
 Highest MIDI key to use this wave.
 
   uint32   offset
 Offset of wave data, relative to base.
 
   uint32   size
 Wave size.
 
   bool   halt
 Oscillator halted?
 
   bool   loop
 Loop mode?
 
   bool   swap
 Swap mode?
 
   bool   rightChannel
 Output channel (left / right)
 
   int16   tune
 Fine tune in semitones (8.8 fixed point)
 
wave [2][127]
 
int8 * wavetableBase
 Base of wave data.
 

Member Function Documentation

◆ read()

bool Agi::IIgsInstrumentHeader::read ( Common::SeekableReadStream stream,
bool  ignoreAddr = false 
)

Read an Apple IIGS instrument header from the given stream.

Parameters
streamThe source stream from which to read the data.
ignoreAddrShould we ignore wave infos' wave address variable's value?
Returns
True if successful, false otherwise.

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