1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-11-24 14:20:19 +01:00
Files
audacity/lib-src/sbsms/src/wxplayer.cpp
2010-01-24 09:19:39 +00:00

28 lines
513 B
C++

#include "wxplayer.h"
#include "wxplayerframe.h"
#include "wx/filename.h"
IMPLEMENT_APP(wxPlayerApp)
bool wxPlayerApp::OnInit()
{
#ifdef _WIN32
int status = pthread_win32_process_attach_np();
#endif
sbsmsplayer *player = new sbsmsplayer();
wxImage::AddHandler(new wxPNGHandler);
wxPlayerFrame *pMain = new wxPlayerFrame(player);
SetTopWindow( pMain );
pMain->Show();
return true;
}
int wxPlayerApp::OnExit()
{
#ifdef _WIN32
int status = pthread_win32_process_detach_np();
#endif
return 0;
}