+
+void MyFrame::OnSelectFile(wxCommandEvent& WXUNUSED(event))
+{
+ wxFileDialog dlg(this, _T("Choose a sound file"),
+ wxEmptyString, wxEmptyString,
+ _T("WAV files (*.wav)|*.wav"), wxOPEN|wxCHANGE_DIR);
+ if ( dlg.ShowModal() == wxID_OK )
+ {
+ m_soundFile = dlg.GetPath();
+ delete m_sound;
+ m_sound = NULL;
+ NotifyUsingFile(m_soundFile);
+ }
+}
+