elem.first.second+=this->streams[elem.second].clock_values[k];// apply the last offset value to the timestamp; if there hasn't yet been an offset value take the first recorded one
}
}
@@ -832,6 +829,7 @@ void Xdf::findMajSR()
}
}
if(srateMap.size()>0){
//search the srateMap to see which sample rate has the most channels
intindex(std::distance(srateMap.begin(),
std::max_element(srateMap.begin(),srateMap.end(),
@@ -840,6 +838,9 @@ void Xdf::findMajSR()
{returnlargest.second<first.second;})));
majSR=srateMap[index].first;//the sample rate that has the most channels
}else{
majSR=0;//if there are no streams with a fixed sample reate