libvstfdetect/vstf_lite_detector.cc
/// Return a string representing the date str based on
/// the number of samples handled (sample rate 16000 hz)
Return a string representing the date str based on
the number of samples handled (sample rate 16000 hz)
Return a string representing the date str based on the number of samples handled ( sample rate 16000 hz )
void Vstf_Detector_NbBytesToDateInStream(uint64_t nb_samples,
                                         std::string &time) {
  uint64_t nb_hours, nb_minutes, nb_seconds, rest;
  nb_seconds = nb_samples / VSTF_SAMPLE_RATE;
  nb_hours = nb_seconds / 3600;
  rest = nb_seconds % 3600;
  nb_minutes = rest / 60;
  rest = nb_minutes % 60;
  nb_seconds = rest;
  time = std::to_string(nb_hours) + "h";
  time += std::to_string(nb_minutes) + "m";
  time += std::to_string(nb_seconds) + "s";
}
void Vstf_Detector_NbBytesToDateInStream ( uint64_t nb_samples , std :: string & time ) { uint64_t nb_hours , nb_minutes , nb_seconds , rest ; nb_seconds = nb_samples / VSTF_SAMPLE_RATE ; nb_hours = nb_seconds / 3600 ; rest = nb_seconds % 3600 ; nb_minutes = rest / 60 ; rest = nb_minutes % 60 ; nb_seconds = rest ; time = std :: to_string ( nb_hours ) + " " ; time += std :: to_string ( nb_minutes ) + " " ; time += std :: to_string ( nb_seconds ) + " " ; }
Return a string representing the date str based on
the number of samples handled (sample rate 16000 hz)
Return a string representing the date str based on the number of samples handled ( sample rate 16000 hz )