// Modified by:
// Created: 04/01/98
// RCS-ID: $Id$
-// Copyright: (c) Julian Smart and Markus Holzem
+// Copyright: (c) Julian Smart
// Licence: wxWindows license
/////////////////////////////////////////////////////////////////////////////
# 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)
// Empty
}
-void MyFrame::OnQuit(wxCommandEvent& event)
+void MyFrame::OnQuit(wxCommandEvent& WXUNUSED(event))
{
Close(TRUE);
}