aboutsummaryrefslogtreecommitdiff
path: root/audio/mididrv.cpp
AgeCommit message (Collapse)Author
2017-12-03BASE: Remove bad casts between incompatible Plugin typesColin Snover
Previously, a C-style cast was used to convert a Common::Array<Plugin *>, populated with pointers to StaticPlugin and DynamicPlugin instances, to a Common::Array<PluginSubclass<T> *>, but PluginSubclass<T> is a *sibling* class to StaticPlugin/DynamicPlugin, so this cast was invalid and the results undefined. The methods for retrieving subclasses of plugins can't be easily changed to just generate an array of temporary wrapper objects that expose an identical API which dereferences to the preferred PluginObject subclass because pointers to these objects are retained by other parts of ScummVM, so the wrappers would needed to be persisted or they would need to just re-expose the underlying Plugin object again. This indicated that a way to solve this problem is to have the callers receive Plugin objects and get the PluginObject from the Plugin by explicitly stating their desired type, in a similar manner to std::get(std::variant), so that the pattern used by this patch to solve the problem. Closes gh-1051.
2014-02-18AUDIO: Make GPL headers consistent in themselves.Johannes Schickel
2012-09-26JANITORIAL: Remove trailing whitespaces.Johannes Schickel
Powered by: git ls-files "*.cpp" "*.h" "*.m" "*.mm" | xargs sed -i -e 's/[ \t]*$//'
2012-02-26COMMON: Move RenderMode and GUIOptions functionality into separate filesMax Horn
2012-02-21COMMON: remove unnecessary commasathrxx
2011-10-23ALL: Reduce assignment of "" to Common::String.Johannes Schickel
When clearing an existant object clear() should be used. When constructing objects (or using default values for parameters) the constructor of String without any argument should be used. This changes only a few instances I noticed while looking over some recent commit logs.
2011-10-23AD: Swtich GUI options to a char array.Eugene Sandulenko
This eliminates nasty limitation of caping number of flags to 31. Current code has limitation of 255 flags, though. Only SCUMM engine is converted, rest do not even compile. Detection of fan talkie MI is broken as it has to be implemented differently.
2011-08-18I18N: Split some original messages to allow translation reusability.Jordi Vilalta Prat
2011-08-07JANITORIAL: Remove trailing empty lines.Christoph Mallon
2011-07-04AUDIO: fix issue in detectDevice when config manager setting is missingathrxx
2011-06-20ALL: Remove trailing whitespacesMax Horn
This tries to make our code a bit more compliant with our code formatting conventions. For future use, this is the command I used: git ls-files "*.cpp" "*.h" | xargs sed -i -e 's/[ \t]*$//'
2011-06-10AUDIO: Remove dead codeMax Horn
2011-06-07AUDIO: improved warnings in detectDevice()athrxx
Silent fallback would occur if the user expressly selected a formerly available audio device which now has become unavailable (switched off, disconnected, no longer compiled in, etc.). A warning dialogue will now be displayed, before the fallback takes place.
2011-06-06AUDIO: some more text tweaksathrxx
2011-06-06I18N: Make MidiDriver detection errors translatable.Alyssa Milburn
2011-06-06AUDIO: cleanup MidiDriver::detectDevice()athrxx
(wrong enum usage)
2011-06-06AUDIO: replaced kDriverName in MidiDriver::detectDevice()athrxx
(This is irrelevant for the MT-32 emulator, but makes sense for plugins which really have more than one device)
2011-06-05AUDIO: replace GUIErrorMessage()athrxx
GUIErrorMessage() shouldn't be used since it changes the window caption and resets the graphics mode.
2011-06-05AUDIO: fix device detection (missing rom files for MT-32 emu)athrxx
This is an attempt to fix the problem Max described in his devel mail. The presence of the rom files will now be checked in detectDevice(). In case of failure there will be fallback attempts. The user will get notified of the detection failure if he has expressly selected the device that failed. Please test with your platform / engine (with or without rom files).
2011-06-02AUDIO: fix some typos in commentsathrxx
2011-05-12GIT: Clean up: Suppress SVN tags, now uselessstrangerke
2011-04-28JANITORIAL: Reduce header dependencies in shared codeOri Avtalion
Some backends may break as I only compiled SDL
2011-02-09AUDIO: Rename sound/ dir to audio/Max Horn
svn-id: r55850