// headers
// ----------------------------------------------------------------------------
#ifdef __GNUG__
- #pragma implementation "mmboard.cpp"
+ #pragma implementation "mmboard.h"
#endif
// For compilers that support precompilation, includes "wx/wx.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;