1
0
Fork 0

Rework ListMidi so it can be more easily added to more backends.

Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3836
This commit is contained in:
Peter Veenstra 2013-10-18 11:55:02 +00:00
parent 3701512a16
commit ffb8cec4d6
3 changed files with 16 additions and 41 deletions

View file

@ -47,6 +47,7 @@
#include "mapper.h"
#include "hardware.h"
#include "programs.h"
#include "midi.h"
#define MIXER_SSIZE 4
#define MIXER_SHIFT 14
@ -577,15 +578,7 @@ private:
}
void ListMidi(){
#if defined (WIN32)
unsigned int total = midiOutGetNumDevs();
for(unsigned int i=0;i<total;i++) {
MIDIOUTCAPS mididev;
midiOutGetDevCaps(i, &mididev, sizeof(MIDIOUTCAPS));
WriteOut("%2d\t \"%s\"\n",i,mididev.szPname);
}
#endif
return;
if(midi.handler) midi.handler->ListAll(this);
};
};