return FALSE;
}
-void MMBoardSoundFile::SetWindow(wxWindow *window)
+void MMBoardSoundFile::SetWindow(wxWindow *WXUNUSED(window))
{
}
switch (m_file_type) {
case MMBoard_WAVE:
return wxString(wxT("WAVE file"));
+ #if 0
+ // break is not reachable after return
break;
+ #endif
case MMBoard_AIFF:
return wxString(wxT("AIFF file"));
+ #if 0
+ // break is not reachable after return
break;
+ #endif
+ #if 0
+ // default moved outside switch for those compilers
+ // which complain about lack of return in function
default:
return wxString(wxT("Unknown file"));
break;
+ #endif
}
+ return wxString(wxT("Unknown file"));
}
wxString MMBoardSoundFile::GetStringInformation()
return btime;
}
-void MMBoardVideoFile::SetPosition(MMBoardTime btime)
+void MMBoardVideoFile::SetPosition(MMBoardTime WXUNUSED(btime))
{
}
wxString info;
info = wxT("Video codec: ");
- info += m_video_driver->GetMovieCodec() + "\n";
+ info += m_video_driver->GetMovieCodec() + _T("\n");
info += wxT("Audio codec: ");
info += m_video_driver->GetAudioCodec();
- info += wxString::Format(" Sample rate: %d Channels: %d\n", m_video_driver->GetSampleRate(),
+ info += wxString::Format(_T(" Sample rate: %d Channels: %d\n"), m_video_driver->GetSampleRate(),
m_video_driver->GetBPS());
- info += wxString::Format(" Frame rate: %.01f", m_video_driver->GetFrameRate());
+ info += wxString::Format(_T(" Frame rate: %.01f"), m_video_driver->GetFrameRate());
return info;
}
return new wxSoundStreamWin();
#endif
- wxMessageBox("You are trying to open a multimedia but you have not devices", "Error", wxOK | wxICON_ERROR, NULL);
+ wxMessageBox(_T("You are trying to open a multimedia but you have not devices"), _T("Error"), wxOK | wxICON_ERROR, NULL);
return NULL;
}
bool MMBoardApp::OnInit()
{
// create the main application window
- MMBoardFrame *frame = new MMBoardFrame("Multimedia Board",
+ MMBoardFrame *frame = new MMBoardFrame(_T("Multimedia Board"),
wxPoint(50, 50), wxSize(450, 340));
// and show it (the frames, unlike simple controls, are not shown when
m_caps = TestMultimediaCaps();
if (!m_caps) {
- wxMessageBox("Your system has no multimedia capabilities. We are exiting now.", "Major error !", wxOK | wxICON_ERROR, NULL);
+ wxMessageBox(_T("Your system has no multimedia capabilities. We are exiting now."), _T("Major error !"), wxOK | wxICON_ERROR, NULL);
return FALSE;
}
wxString msg;
- msg.Printf("Detected : %s%s%s", (m_caps & MM_SOUND_OSS) ? "OSS " : "",
- (m_caps & MM_SOUND_ESD) ? "ESD " : "",
- (m_caps & MM_SOUND_WIN) ? "WIN" : "");
+ msg.Printf(_T("Detected : %s%s%s"), (m_caps & MM_SOUND_OSS) ? _T("OSS ") : _T(""),
+ (m_caps & MM_SOUND_ESD) ? _T("ESD ") : _T(""),
+ (m_caps & MM_SOUND_WIN) ? _T("WIN") : _T(""));
- wxMessageBox(msg, "Good !", wxOK | wxICON_INFORMATION, NULL);
+ wxMessageBox(msg, _T("Good !"), wxOK | wxICON_INFORMATION, NULL);
// success: wxApp::OnRun() will be called which will enter the main message
// loop and the application will run. If we returned FALSE here, the
m_fileType = new wxStaticText(infoPanel, -1, wxT(""));
wxStaticLine *line = new wxStaticLine(infoPanel, -1);
- m_infoText = new wxStaticText(infoPanel, -1, "");
+ m_infoText = new wxStaticText(infoPanel, -1, _T(""));
UpdateInfoText();
wxT("an example of the capabilities of the wxWindows multimedia classes.\n")
wxT("Copyright 1999, 2000, Guilhem Lavaux.\n"));
- wxMessageBox(msg, "About MMBoard", wxOK | wxICON_INFORMATION, this);
+ wxMessageBox(msg, _T("About MMBoard"), wxOK | wxICON_INFORMATION, this);
}
void MMBoardFrame::OnOpen(wxCommandEvent& WXUNUSED(event))
}
// select a file to be opened
- selected_file = wxLoadFileSelector("multimedia", "*", NULL, this);
+ selected_file = wxLoadFileSelector(_T("multimedia"), _T("*"), NULL, this);
if (selected_file.IsNull())
return;