mirror of
https://github.com/cookiengineer/audacity
synced 2025-11-24 14:20:19 +01:00
28 lines
513 B
C++
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;
|
|
}
|