void MarkerList::UpdateReaper() { // Function to take content of list and update Reaper environment // First delete all markers/regions, then regen from list bool bReg; int iID; while (EnumProjectMarkers(0, &bReg, NULL, NULL, NULL, &iID)) DeleteProjectMarker(NULL, iID, bReg); SWS_SectionLock lock(&m_mutex); for (int i = 0; i < m_items.GetSize(); i++) m_items.Get(i)->AddToProject(); UpdateTimeline(); }
void DeleteAllMarkers() { bool bReg; int iID; int x = 0, lastx = 0; while ((x = EnumProjectMarkers(x, &bReg, NULL, NULL, NULL, &iID))) { if (!bReg) { DeleteProjectMarker(NULL, iID, false); x = lastx; } lastx = x; } }