Changeset 6ede3ab for src/lvec.c


Ignore:
Timestamp:
Dec 18, 2013, 7:29:16 AM (10 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:
c3c6305
Parents:
4f2c28c
Message:

src/lvec.h: clean up lvec api

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/lvec.c

    r4f2c28c r6ede3ab  
    4040  s->data[position] = data;
    4141}
    42 lsmp_t lvec_read_sample(lvec_t *s, uint_t position) {
     42lsmp_t lvec_get_sample(lvec_t *s, uint_t position) {
    4343  return s->data[position];
    4444}
     
    5858}
    5959
    60 void lvec_set(lvec_t *s, smpl_t val) {
     60void lvec_set_all (lvec_t *s, smpl_t val) {
    6161  uint_t j;
    6262  for (j=0; j< s->length; j++) {
     
    6969  memset(s->data, 0, s->length * sizeof(lsmp_t));
    7070#else
    71   lvec_set(s, 0.);
     71  lvec_set_all (s, 0.);
    7272#endif
    7373}
    7474
    7575void lvec_ones(lvec_t *s) {
    76   lvec_set(s, 1.);
     76  lvec_set_all (s, 1.);
    7777}
    7878
Note: See TracChangeset for help on using the changeset viewer.