1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-10-25 07:43:54 +02:00

Make EXPERIMENTAL_MIDI_IN compilable

This commit is contained in:
Paul Licameli
2019-04-03 16:30:41 -04:00
parent be737fd2c0
commit a768ff177e
2 changed files with 6 additions and 4 deletions

View File

@@ -189,11 +189,11 @@ void MidiIOPrefs::OnHost(wxCommandEvent & WXUNUSED(e))
mPlay->Clear();
#ifdef EXPERIMENTAL_MIDI_IN
mRecord->clear();
mRecord->Clear();
#endif
wxArrayStringEx playnames;
wxArrayString recordnames;
wxArrayStringEx recordnames;
for (int i = 0; i < nDevices; i++) {
const PmDeviceInfo *info = Pm_GetDeviceInfo(i);
@@ -227,7 +227,7 @@ void MidiIOPrefs::OnHost(wxCommandEvent & WXUNUSED(e))
mPlay->Append(playnames[0], (void *) NULL);
}
#ifdef EXPERIMENTAL_MIDI_IN
if (mRecord->size() == 0) {
if (mRecord->GetCount() == 0) {
recordnames.push_back(_("No devices found"));
mRecord->Append(recordnames[0], (void *) NULL);
}
@@ -236,7 +236,7 @@ void MidiIOPrefs::OnHost(wxCommandEvent & WXUNUSED(e))
mPlay->SetSelection(0);
}
#ifdef EXPERIMENTAL_MIDI_IN
if (mRecord->size() && mRecord->GetSelection() == wxNOT_FOUND) {
if (mRecord->GetCount() && mRecord->GetSelection() == wxNOT_FOUND) {
mRecord->SetSelection(0);
}
#endif