# error You must set wxUSE_STATUSBAR to 1 in setup.h
#endif
-#include "wx/wave.h"
+#include "wx/sound.h"
#include "wx/joystick.h"
#include "joytest.h"
return FALSE;
}
-#if wxUSE_WAVE
+#if wxUSE_SOUND
m_fire.Create(_T("gun.wav"));
-#endif // wxUSE_WAVE
+#endif // wxUSE_SOUND
m_maxX = stick.GetXMax();
m_maxY = stick.GetYMax();
frame->SetStatusText(buf);
-#if wxUSE_WAVE
+#if wxUSE_SOUND
if (event.ButtonDown() && wxGetApp().m_fire.IsOk())
{
wxGetApp().m_fire.Play();
}
-#endif // wxUSE_WAVE
+#endif // wxUSE_SOUND
}
BEGIN_EVENT_TABLE(MyFrame, wxFrame)