git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59518
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
menuFile->Append(Sound_SelectFile, _T("Select WAV &file...\tCtrl-O"), _T("Select a new wav file to play"));
#ifdef __WXMSW__
menuFile->Append(Sound_SelectResource, _T("Select WAV &resource...\tCtrl-R"), _T("Select a new resource to play"));
menuFile->Append(Sound_SelectFile, _T("Select WAV &file...\tCtrl-O"), _T("Select a new wav file to play"));
#ifdef __WXMSW__
menuFile->Append(Sound_SelectResource, _T("Select WAV &resource...\tCtrl-R"), _T("Select a new resource to play"));
menuFile->Append(Sound_SelectMemory, _T("Select WAV &data\tCtrl-M"), _T("Choose to play from memory buffer"));
menuFile->Append(Sound_SelectMemory, _T("Select WAV &data\tCtrl-M"), _T("Choose to play from memory buffer"));
menuFile->Append(Sound_Quit, _T("E&xit\tAlt-X"), _T("Quit this program"));
wxMenu *playMenu = new wxMenu;
menuFile->Append(Sound_Quit, _T("E&xit\tAlt-X"), _T("Quit this program"));
wxMenu *playMenu = new wxMenu;
bool MyFrame::CreateSound(wxSound& snd) const
{
bool MyFrame::CreateSound(wxSound& snd) const
{
if ( m_useMemory )
{
// this is the dump of cuckoo.wav
if ( m_useMemory )
{
// this is the dump of cuckoo.wav
return snd.Create(sizeof(data), data);
}
return snd.Create(sizeof(data), data);
}
if ( !m_soundRes.empty() )
{
return snd.Create(m_soundRes, true);
if ( !m_soundRes.empty() )
{
return snd.Create(m_soundRes, true);