Changeset b16fc82


Ignore:
Timestamp:
Sep 17, 2009, 7:09:57 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:
dffe76f
Parents:
13bcd32
Message:

src/types.h: add a switch between single and double precision

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/types.h

    r13bcd32 rb16fc82  
    4040
    4141/** short sample format (32 or 64 bits) */
     42#if AUBIO_SINGLE_PRECISION
    4243typedef float        smpl_t;
    43 //typedef double       smpl_t;
     44#define AUBIO_SMPL_FMT "%f"
     45#else
     46typedef double       smpl_t;
     47#define AUBIO_SMPL_FMT "%lf"
     48#endif
    4449/** long sample format (64 bits or more) */
     50#if AUBIO_SINGLE_PRECISION
    4551typedef double       lsmp_t;
    46 //typedef long        lsmp_t;
     52#define AUBIO_LSMP_FMT "%lf"
     53#else
     54typedef long double  lsmp_t;
     55#define AUBIO_LSMP_FMT "%Lf"
     56#endif
    4757/** unsigned integer */
    4858typedef unsigned int uint_t;
Note: See TracChangeset for help on using the changeset viewer.