Changeset 0a257a6


Ignore:
Timestamp:
Oct 16, 2009, 4:16:42 AM (15 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:
f1b925e
Parents:
6338636
Message:

src/tempo/tempo.{c,h}: setters to return unsigned ints

Location:
src/tempo
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • src/tempo/tempo.c

    r6338636 r0a257a6  
    8787}
    8888
    89 void aubio_tempo_set_silence(aubio_tempo_t * o, smpl_t silence) {
     89uint_t aubio_tempo_set_silence(aubio_tempo_t * o, smpl_t silence) {
    9090  o->silence = silence;
    91   return;
     91  return AUBIO_OK;
    9292}
    9393
    94 void aubio_tempo_set_threshold(aubio_tempo_t * o, smpl_t threshold) {
     94uint_t aubio_tempo_set_threshold(aubio_tempo_t * o, smpl_t threshold) {
    9595  o->threshold = threshold;
    9696  aubio_peakpicker_set_threshold(o->pp, o->threshold);
    97   return;
     97  return AUBIO_OK;
    9898}
    9999
  • src/tempo/tempo.h

    r6338636 r0a257a6  
    4545
    4646/** set tempo detection silence threshold  */
    47 void aubio_tempo_set_silence(aubio_tempo_t * o, smpl_t silence);
     47uint_t aubio_tempo_set_silence(aubio_tempo_t * o, smpl_t silence);
    4848
    4949/** set tempo detection peak picking threshold  */
    50 void aubio_tempo_set_threshold(aubio_tempo_t * o, smpl_t threshold);
     50uint_t aubio_tempo_set_threshold(aubio_tempo_t * o, smpl_t threshold);
    5151
    5252/** get current tempo
Note: See TracChangeset for help on using the changeset viewer.