Reply 140 of 1565, by Yesterplay80
- Rank
- Oldbie
wrote:Out of curiosity, why make Win32 the default setting instead of "default" aka the default system midi playback device? Is Win32 normally the default setting for this parameter?
Exactly, in vanilla DOSBox Win32 is the only and therefor the default midi device under Windows OSes. So whether you set the corresponding option to "default" or "win32" doesn't matter, as it is the same.
wrote:Furthermore, what defines the default midi playback device if this parameter is set to default instead of win32?
The order in which the different devices are listed in the source code:
/* Include different midi drivers, lowest ones get checked first for default */
#ifdef C_FLUIDSYNTH
#include "midi_fluidsynth.h"
#endif
#include "midi_mt32.h"
static MidiHandler_mt32 &Midi_mt32 = MidiHandler_mt32::GetInstance()
#if defined(MACOSX)
#include "midi_coremidi.h"
#include "midi_coreaudio.h"
#elif defined (WIN32)
#include "midi_win32.h"
#else
#include "midi_oss.h"
#endif
#if defined (HAVE_ALSA)
#include "midi_alsa.h"
#endif
wrote:This may be a little off-topic, but should mididevice always be set to win32 (if using Windows) regardless of if I'm using Sound Canvas VA or Munt, unless I want to use the built-in MT-32 emulation of ECE, in which case I choose "mt32"?
Yes, absolutely, if you want to use any external midi synthesizer that you installed in Windows, you have to choose "win32" as midi device in DOSBox and select the one you want to use with "midiconfig=x", where x is the name, part of the name or the number shown when calling "mixer /listmidi".
My full-featured DOSBox SVN builds for Windows & Linux: Vanilla DOSBox and DOSBox ECE (Google Drive Mirror)