Changeset 6338636 for src/onset


Ignore:
Timestamp:
Oct 16, 2009, 4:03:03 AM (14 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:
0a257a6
Parents:
f1b6aad
Message:

src/onset/onset.c: setters to return unsigned ints

Location:
src/onset
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • src/onset/onset.c

    rf1b6aad r6338636  
    7272}
    7373
    74 void aubio_onset_set_silence(aubio_onset_t * o, smpl_t silence) {
     74uint_t aubio_onset_set_silence(aubio_onset_t * o, smpl_t silence) {
    7575  o->silence = silence;
    76   return;
     76  return AUBIO_OK;
    7777}
    7878
    79 void aubio_onset_set_threshold(aubio_onset_t * o, smpl_t threshold) {
     79uint_t aubio_onset_set_threshold(aubio_onset_t * o, smpl_t threshold) {
    8080  o->threshold = threshold;
    8181  aubio_peakpicker_set_threshold(o->pp, o->threshold);
    82   return;
     82  return AUBIO_OK;
    8383}
    8484
    85 void aubio_onset_set_minioi(aubio_onset_t * o, uint_t minioi) {
     85uint_t aubio_onset_set_minioi(aubio_onset_t * o, uint_t minioi) {
    8686  o->minioi = minioi;
    87   return;
     87  return AUBIO_OK;
    8888}
    8989
  • src/onset/onset.h

    rf1b6aad r6338636  
    7070
    7171*/
    72 void aubio_onset_set_silence(aubio_onset_t * o, smpl_t silence);
     72uint_t aubio_onset_set_silence(aubio_onset_t * o, smpl_t silence);
    7373
    7474/** set onset detection peak picking threshold
     
    7878
    7979*/
    80 void aubio_onset_set_threshold(aubio_onset_t * o, smpl_t threshold);
     80uint_t aubio_onset_set_threshold(aubio_onset_t * o, smpl_t threshold);
    8181
    8282/** set minimum inter onset interval
     
    8787
    8888*/
    89 void aubio_onset_set_minioi(aubio_onset_t * o, uint_t minioi);
     89uint_t aubio_onset_set_minioi(aubio_onset_t * o, uint_t minioi);
    9090
    9191/** delete onset detection object
Note: See TracChangeset for help on using the changeset viewer.