ScummVM API documentation
MT32Emu::Synth Class Reference

Public Member Functions

 Synth (ReportHandler *useReportHandler=NULL)
 
void setReportHandler2 (ReportHandler2 *reportHandler2)
 
bool open (const ROMImage &controlROMImage, const ROMImage &pcmROMImage, Bit32u usePartialCount=DEFAULT_MAX_PARTIALS, AnalogOutputMode analogOutputMode=AnalogOutputMode_COARSE)
 
bool open (const ROMImage &controlROMImage, const ROMImage &pcmROMImage, AnalogOutputMode analogOutputMode)
 
void close ()
 
bool isOpen () const
 
void flushMIDIQueue ()
 
Bit32u setMIDIEventQueueSize (Bit32u requestedSize)
 
void configureMIDIEventQueueSysexStorage (Bit32u storageBufferSize)
 
Bit32u getInternalRenderedSampleCount () const
 
bool playMsg (Bit32u msg, Bit32u timestamp)
 
bool playSysex (const Bit8u *sysex, Bit32u len, Bit32u timestamp)
 
bool playMsg (Bit32u msg)
 
bool playSysex (const Bit8u *sysex, Bit32u len)
 
void playMsgNow (Bit32u msg)
 
void playMsgOnPart (Bit8u part, Bit8u code, Bit8u note, Bit8u velocity)
 
void playSysexNow (const Bit8u *sysex, Bit32u len)
 
void playSysexWithoutFraming (const Bit8u *sysex, Bit32u len)
 
void playSysexWithoutHeader (Bit8u device, Bit8u command, const Bit8u *sysex, Bit32u len)
 
void writeSysex (Bit8u channel, const Bit8u *sysex, Bit32u len)
 
void setReverbEnabled (bool reverbEnabled)
 
bool isReverbEnabled () const
 
void setReverbOverridden (bool reverbOverridden)
 
bool isReverbOverridden () const
 
void setReverbCompatibilityMode (bool mt32CompatibleMode)
 
bool isMT32ReverbCompatibilityMode () const
 
bool isDefaultReverbMT32Compatible () const
 
void preallocateReverbMemory (bool enabled)
 
void setDACInputMode (DACInputMode mode)
 
DACInputMode getDACInputMode () const
 
void setMIDIDelayMode (MIDIDelayMode mode)
 
MIDIDelayMode getMIDIDelayMode () const
 
void setOutputGain (float gain)
 
float getOutputGain () const
 
void setReverbOutputGain (float gain)
 
float getReverbOutputGain () const
 
void setPartVolumeOverride (Bit8u partNumber, Bit8u volumeOverride)
 
Bit8u getPartVolumeOverride (Bit8u partNumber) const
 
void setReversedStereoEnabled (bool enabled)
 
bool isReversedStereoEnabled () const
 
void setNiceAmpRampEnabled (bool enabled)
 
bool isNiceAmpRampEnabled () const
 
void setNicePanningEnabled (bool enabled)
 
bool isNicePanningEnabled () const
 
void setNicePartialMixingEnabled (bool enabled)
 
bool isNicePartialMixingEnabled () const
 
void selectRendererType (RendererType)
 
RendererType getSelectedRendererType () const
 
Bit32u getStereoOutputSampleRate () const
 
void render (Bit16s *stream, Bit32u len)
 
void render (float *stream, Bit32u len)
 
void renderStreams (Bit16s *nonReverbLeft, Bit16s *nonReverbRight, Bit16s *reverbDryLeft, Bit16s *reverbDryRight, Bit16s *reverbWetLeft, Bit16s *reverbWetRight, Bit32u len)
 
void renderStreams (const DACOutputStreams< Bit16s > &streams, Bit32u len)
 
void renderStreams (float *nonReverbLeft, float *nonReverbRight, float *reverbDryLeft, float *reverbDryRight, float *reverbWetLeft, float *reverbWetRight, Bit32u len)
 
void renderStreams (const DACOutputStreams< float > &streams, Bit32u len)
 
bool hasActivePartials () const
 
bool isActive ()
 
Bit32u getPartialCount () const
 
void getPartStates (bool *partStates) const
 
Bit32u getPartStates () const
 
void getPartialStates (PartialState *partialStates) const
 
void getPartialStates (Bit8u *partialStates) const
 
Bit32u getPlayingNotes (Bit8u partNumber, Bit8u *keys, Bit8u *velocities) const
 
const char * getPatchName (Bit8u partNumber) const
 
bool getSoundGroupName (char *soundGroupName, Bit8u timbreGroup, Bit8u timbreNumber) const
 
bool getSoundName (char *soundName, Bit8u timbreGroup, Bit8u timbreNumber) const
 
void readMemory (Bit32u addr, Bit32u len, Bit8u *data)
 
bool getDisplayState (char *targetBuffer, bool narrowLCD=false) const
 
void setMainDisplayMode ()
 
void setDisplayCompatibility (bool oldMT32CompatibilityEnabled)
 
bool isDisplayOldMT32Compatible () const
 
bool isDefaultDisplayOldMT32Compatible () const
 

Static Public Member Functions

static Bit16s clipSampleEx (Bit32s sampleEx)
 
static float clipSampleEx (float sampleEx)
 
template<class S >
static void muteSampleBuffer (S *buffer, Bit32u len)
 
static void muteSampleBuffer (float *buffer, Bit32u len)
 
static Bit16s convertSample (float sample)
 
static float convertSample (Bit16s sample)
 
static Bit32u getLibraryVersionInt ()
 
static const char * getLibraryVersionString ()
 
static Bit32u getShortMessageLength (Bit32u msg)
 
static Bit8u calcSysexChecksum (const Bit8u *data, const Bit32u len, const Bit8u initChecksum=0)
 
static Bit32u getStereoOutputSampleRate (AnalogOutputMode analogOutputMode)
 

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