Changeset ef0a430 for src


Ignore:
Timestamp:
Nov 24, 2018, 6:31:42 PM (13 months ago)
Author:
Paul Brossier <piem@piem.org>
Branches:
feature/autosink, feature/constantq, feature/pitchshift, feature/pydocstrings, feature/timestretch, master
Children:
1cf031a
Parents:
832b0f6
Message:

[tempo] fix delay_ms methods

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/tempo/tempo.c

    r832b0f6 ref0a430  
    129129
    130130uint_t aubio_tempo_set_delay_ms(aubio_tempo_t * o, smpl_t delay) {
    131   o->delay = 1000. * delay * o->samplerate;
    132   return AUBIO_OK;
     131  return aubio_tempo_set_delay_s(o, delay / 1000.);
    133132}
    134133
     
    142141
    143142smpl_t aubio_tempo_get_delay_ms(aubio_tempo_t * o) {
    144   return o->delay / (smpl_t)(o->samplerate) / 1000.;
     143  return aubio_tempo_get_delay_s(o) * 1000.;
    145144}
    146145
Note: See TracChangeset for help on using the changeset viewer.