mirror of
https://gitlab.com/samplehive/sample-hive.git
synced 2026-09-04 05:16:20 +02:00
Temporary fix the short sample not looping from beginning.
This commit is contained in:
@@ -214,13 +214,13 @@ void cMainFrame::OnMediaFinished(wxMediaEvent& event)
|
||||
{
|
||||
if (m_pTransportControls->CanLoop())
|
||||
{
|
||||
if (!m_pMediaCtrl->Play())
|
||||
{
|
||||
wxMessageDialog msgDialog(NULL, _("Error! Cannot loop media."), _("Error"), wxOK | wxICON_ERROR);
|
||||
msgDialog.ShowModal();
|
||||
}
|
||||
else
|
||||
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: <--
|
||||
if (!m_pMediaCtrl->Play())
|
||||
{
|
||||
wxMessageDialog msgDialog(NULL, _("Error! Cannot loop media."), _("Error"), wxOK | wxICON_ERROR);
|
||||
msgDialog.ShowModal();
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user