ScummVM API documentation
MT32Emu::Service Class Reference

Public Member Functions

 Service (mt32emu_context context=NULL)
 
mt32emu_report_handler_version getSupportedReportHandlerVersionID ()
 
mt32emu_midi_receiver_version getSupportedMIDIReceiverVersionID ()
 
Bit32u getLibraryVersionInt ()
 
const char * getLibraryVersionString ()
 
Bit32u getStereoOutputSamplerate (const AnalogOutputMode analog_output_mode)
 
AnalogOutputMode getBestAnalogOutputMode (const double target_samplerate)
 
size_t getMachineIDs (const char **machine_ids, size_t machine_ids_size)
 
size_t getROMIDs (const char **rom_ids, size_t rom_ids_size, const char *machine_id)
 
mt32emu_return_code identifyROMData (mt32emu_rom_info *rom_info, const Bit8u *data, size_t data_size, const char *machine_id)
 
mt32emu_return_code identifyROMFile (mt32emu_rom_info *rom_info, const char *filename, const char *machine_id)
 
mt32emu_context getContext ()
 
void createContext (mt32emu_report_handler_i report_handler=CppInterfaceImpl::NULL_REPORT_HANDLER, void *instance_data=NULL)
 
void createContext (IReportHandler &report_handler)
 
void createContext (IReportHandlerV1 &report_handler)
 
void freeContext ()
 
mt32emu_return_code addROMData (const Bit8u *data, size_t data_size, const mt32emu_sha1_digest *sha1_digest=NULL)
 
mt32emu_return_code addROMFile (const char *filename)
 
mt32emu_return_code mergeAndAddROMData (const Bit8u *part1_data, size_t part1_data_size, const Bit8u *part2_data, size_t part2_data_size)
 
mt32emu_return_code mergeAndAddROMData (const Bit8u *part1_data, size_t part1_data_size, const mt32emu_sha1_digest *part1_sha1_digest, const Bit8u *part2_data, size_t part2_data_size, const mt32emu_sha1_digest *part2_sha1_digest)
 
mt32emu_return_code mergeAndAddROMFiles (const char *part1_filename, const char *part2_filename)
 
mt32emu_return_code addMachineROMFile (const char *machine_id, const char *filename)
 
void getROMInfo (mt32emu_rom_info *rom_info)
 
void setPartialCount (const Bit32u partial_count)
 
void setAnalogOutputMode (const AnalogOutputMode analog_output_mode)
 
void setStereoOutputSampleRate (const double samplerate)
 
void setSamplerateConversionQuality (const SamplerateConversionQuality quality)
 
void selectRendererType (const RendererType newRendererType)
 
RendererType getSelectedRendererType ()
 
mt32emu_return_code openSynth ()
 
void closeSynth ()
 
bool isOpen ()
 
Bit32u getActualStereoOutputSamplerate ()
 
Bit32u convertOutputToSynthTimestamp (Bit32u output_timestamp)
 
Bit32u convertSynthToOutputTimestamp (Bit32u synth_timestamp)
 
void flushMIDIQueue ()
 
Bit32u setMIDIEventQueueSize (const Bit32u queue_size)
 
void configureMIDIEventQueueSysexStorage (const Bit32u storage_buffer_size)
 
void setMIDIReceiver (mt32emu_midi_receiver_i midi_receiver, void *instance_data)
 
void setMIDIReceiver (IMidiReceiver &midi_receiver)
 
Bit32u getInternalRenderedSampleCount ()
 
void parseStream (const Bit8u *stream, Bit32u length)
 
void parseStream_At (const Bit8u *stream, Bit32u length, Bit32u timestamp)
 
void playShortMessage (Bit32u message)
 
void playShortMessageAt (Bit32u message, Bit32u timestamp)
 
mt32emu_return_code playMsg (Bit32u msg)
 
mt32emu_return_code playSysex (const Bit8u *sysex, Bit32u len)
 
mt32emu_return_code playMsgAt (Bit32u msg, Bit32u timestamp)
 
mt32emu_return_code playSysexAt (const Bit8u *sysex, Bit32u len, Bit32u timestamp)
 
void playMsgNow (Bit32u msg)
 
void playMsgOnPart (Bit8u part, Bit8u code, Bit8u note, Bit8u velocity)
 
void playSysexNow (const Bit8u *sysex, Bit32u len)
 
void writeSysex (Bit8u channel, const Bit8u *sysex, Bit32u len)
 
void setReverbEnabled (const bool reverb_enabled)
 
bool isReverbEnabled ()
 
void setReverbOverridden (const bool reverb_overridden)
 
bool isReverbOverridden ()
 
void setReverbCompatibilityMode (const bool mt32_compatible_mode)
 
bool isMT32ReverbCompatibilityMode ()
 
bool isDefaultReverbMT32Compatible ()
 
void preallocateReverbMemory (const bool enabled)
 
void setDACInputMode (const DACInputMode mode)
 
DACInputMode getDACInputMode ()
 
void setMIDIDelayMode (const MIDIDelayMode mode)
 
MIDIDelayMode getMIDIDelayMode ()
 
void setOutputGain (float gain)
 
float getOutputGain ()
 
void setReverbOutputGain (float gain)
 
float getReverbOutputGain ()
 
void setPartVolumeOverride (Bit8u part_number, Bit8u volume_override)
 
Bit8u getPartVolumeOverride (Bit8u part_number)
 
void setReversedStereoEnabled (const bool enabled)
 
bool isReversedStereoEnabled ()
 
void setNiceAmpRampEnabled (const bool enabled)
 
bool isNiceAmpRampEnabled ()
 
void setNicePanningEnabled (const bool enabled)
 
bool isNicePanningEnabled ()
 
void setNicePartialMixingEnabled (const bool enabled)
 
bool isNicePartialMixingEnabled ()
 
void renderBit16s (Bit16s *stream, Bit32u len)
 
void renderFloat (float *stream, Bit32u len)
 
void renderBit16sStreams (const mt32emu_dac_output_bit16s_streams *streams, Bit32u len)
 
void renderFloatStreams (const mt32emu_dac_output_float_streams *streams, Bit32u len)
 
bool hasActivePartials ()
 
bool isActive ()
 
Bit32u getPartialCount ()
 
Bit32u getPartStates ()
 
void getPartialStates (Bit8u *partial_states)
 
Bit32u getPlayingNotes (Bit8u part_number, Bit8u *keys, Bit8u *velocities)
 
const char * getPatchName (Bit8u part_number)
 
bool getSoundGroupName (char *soundGroupName, Bit8u timbreGroup, Bit8u timbreNumber)
 
bool getSoundName (char *soundName, Bit8u timbreGroup, Bit8u timbreNumber)
 
void readMemory (Bit32u addr, Bit32u len, Bit8u *data)
 
bool getDisplayState (char *target_buffer, const bool narrow_lcd)
 
void setMainDisplayMode ()
 
void setDisplayCompatibility (const bool oldMT32CompatibilityEnabled)
 
bool isDisplayOldMT32Compatible ()
 
bool isDefaultDisplayOldMT32Compatible ()
 

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