Temporary fix the short sample not looping from beginning.
This commit is contained in:
parent
165e11ce6f
commit
22f45fbd66
|
|
@ -214,13 +214,13 @@ void cMainFrame::OnMediaFinished(wxMediaEvent& event)
|
||||||
{
|
{
|
||||||
if (m_pTransportControls->CanLoop())
|
if (m_pTransportControls->CanLoop())
|
||||||
{
|
{
|
||||||
if (!m_pMediaCtrl->Play())
|
// FIXME: Temporary fix for the sample not playing from beginning when looping. Might need to change this.
|
||||||
{
|
if (m_pMediaCtrl->Stop()) // TODO: <--
|
||||||
wxMessageDialog msgDialog(NULL, _("Error! Cannot loop media."), _("Error"), wxOK | wxICON_ERROR);
|
if (!m_pMediaCtrl->Play())
|
||||||
msgDialog.ShowModal();
|
{
|
||||||
}
|
wxMessageDialog msgDialog(NULL, _("Error! Cannot loop media."), _("Error"), wxOK | wxICON_ERROR);
|
||||||
else
|
msgDialog.ShowModal();
|
||||||
m_pMediaCtrl->Play();
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue