mirror of
https://github.com/overte-org/overte.git
synced 2025-07-24 01:03:58 +02:00
last of the PR changes
This commit is contained in:
parent
fbc28c0e2f
commit
c35020eb5a
1 changed files with 2 additions and 4 deletions
|
@ -99,8 +99,7 @@ void Midi::MidiSetup() {
|
||||||
for (int j = 0; j < midiinexclude.size(); j++) {
|
for (int j = 0; j < midiinexclude.size(); j++) {
|
||||||
if (midiinexclude[j].toStdString().compare(incaps.szPname) == 0) found = true;
|
if (midiinexclude[j].toStdString().compare(incaps.szPname) == 0) found = true;
|
||||||
}
|
}
|
||||||
if (!found) // EXCLUDE AN INPUT BY NAME
|
if (!found) { // EXCLUDE AN INPUT BY NAME
|
||||||
{
|
|
||||||
HMIDIIN tmphin;
|
HMIDIIN tmphin;
|
||||||
midiInOpen(&tmphin, i, (DWORD_PTR)MidiInProc, NULL, CALLBACK_FUNCTION);
|
midiInOpen(&tmphin, i, (DWORD_PTR)MidiInProc, NULL, CALLBACK_FUNCTION);
|
||||||
midiInStart(tmphin);
|
midiInStart(tmphin);
|
||||||
|
@ -117,8 +116,7 @@ void Midi::MidiSetup() {
|
||||||
for (int j = 0; j < midioutexclude.size(); j++) {
|
for (int j = 0; j < midioutexclude.size(); j++) {
|
||||||
if (midioutexclude[j].toStdString().compare(outcaps.szPname) == 0) found = true;
|
if (midioutexclude[j].toStdString().compare(outcaps.szPname) == 0) found = true;
|
||||||
}
|
}
|
||||||
if (!found) // EXCLUDE AN OUTPUT BY NAME
|
if (!found) { // EXCLUDE AN OUTPUT BY NAME
|
||||||
{
|
|
||||||
HMIDIOUT tmphout;
|
HMIDIOUT tmphout;
|
||||||
midiOutOpen(&tmphout, i, (DWORD_PTR)MidiOutProc, NULL, CALLBACK_FUNCTION);
|
midiOutOpen(&tmphout, i, (DWORD_PTR)MidiOutProc, NULL, CALLBACK_FUNCTION);
|
||||||
midihout.push_back(tmphout);
|
midihout.push_back(tmphout);
|
||||||
|
|
Loading…
Reference in a new issue