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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user