Ignore:
Timestamp:
Aug 12, 2015, 4:31:40 PM (9 years ago)
Author:
Paul Brossier <piem@piem.org>
Branches:
feature/autosink, feature/cnn, feature/cnn_org, feature/constantq, feature/crepe, feature/crepe_org, feature/pitchshift, feature/pydocstrings, feature/timestretch, fix/ffmpeg5, master, pitchshift, sampler, timestretch, yinfft+
Children:
3ff50e5
Parents:
340cb93
Message:

examples/parse_args.h: only parse time format string once, warn if unknown

File:
1 edited

Legend:

Unmodified
Added
Removed
  • examples/aubioonset.c

    r340cb93 rdf7be43  
    5050{
    5151  if ( is_onset ) {
    52     if (strcmp (time_format, "samples") == 0) {
    53       outmsg ("%d\n", aubio_onset_get_last (o) );
    54     } else if (strcmp (time_format, "ms") == 0) {
    55       outmsg ("%f\n", aubio_onset_get_last_ms (o) );
    56     } else {
    57       outmsg ("%f\n", aubio_onset_get_last_s (o) );
    58     }
     52    print_time(aubio_onset_get_last (o));
     53    outmsg ("\n");
    5954  }
    6055}
Note: See TracChangeset for help on using the changeset viewer.