// ----------------------------------------------------------------------------
// headers
// ----------------------------------------------------------------------------
-#ifdef __GNUG__
- #pragma implementation "mmboard.cpp"
-#endif
// For compilers that support precompilation, includes "wx/wx.h".
#include "wx/wxprec.h"
caps = 0;
-#ifdef __UNIX__
+#ifdef __WIN32__
+ // We test the Windows sound support.
+
+ dev = new wxSoundStreamWin();
+ if (dev->GetError() == wxSOUND_NOERROR)
+ caps |= MM_SOUND_WIN;
+ delete dev;
+
+#elif defined __UNIX__
// We now test the ESD support
dev = new wxSoundStreamESD();
}
#endif
-#endif
-
-#ifdef __WIN32__
- // We test the Windows sound support.
-
- dev = new wxSoundStreamWin();
- if (dev->GetError() == wxSOUND_NOERROR)
- caps |= MM_SOUND_WIN;
- delete dev;
#endif
return caps;
}
// select a file to be opened
+#if wxUSE_FILEDLG
selected_file = wxLoadFileSelector(_T("multimedia"), _T("*"), NULL, this);
- if (selected_file.IsNull())
+#endif // wxUSE_FILEDLG
+ if (selected_file.empty())
return;
m_opened_file = MMBoardManager::Open(selected_file);
UpdateMMedInfo();
}
-