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:
parent
3701512a16
commit
ffb8cec4d6
3 changed files with 16 additions and 41 deletions
|
@ -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);
|
||||
};
|
||||
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue