Changeset 46044ed


Ignore:
Timestamp:
Sep 25, 2009, 11:03:34 PM (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:
f00088f
Parents:
6f0b8a0
Message:

src/types.h: add some documentation, use HAVE_AUBIO_DOUBLE, not AUBIO_SINGLE_PRECISION

Files:
3 edited

Legend:

Unmodified
Added
Removed
  • ext/jackio.c

    r6f0b8a0 r46044ed  
    2727typedef jack_default_audio_sample_t jack_sample_t;
    2828
    29 #if !AUBIO_SINGLE_PRECISION
     29#if HAVE_AUBIO_DOUBLE
    3030#define AUBIO_JACK_MAX_FRAMES 4096
    3131#define AUBIO_JACK_NEEDS_CONVERSION
  • src/aubio_priv.h

    r6f0b8a0 r46044ed  
    125125
    126126/* aliases to math.h functions */
    127 #if AUBIO_SINGLE_PRECISION
     127#if !HAVE_AUBIO_DOUBLE
    128128#define EXP        expf
    129129#define COS        cosf
     
    151151
    152152/* aliases to complex.h functions */
    153 #if !defined(AUBIO_SINGLE_PRECISION) || !defined(HAVE_COMPLEX_H) || defined(WIN32)
     153#if HAVE_AUBIO_DOUBLE || !defined(HAVE_COMPLEX_H) || defined(WIN32)
    154154/* mingw32 does not know about c*f functions */
    155155#define EXPC      cexp
  • src/types.h

    r6f0b8a0 r46044ed  
    3434
    3535#ifndef HAVE_AUBIO_DOUBLE
     36/** defined to 1 if aubio is compiled in double precision */
    3637#define HAVE_AUBIO_DOUBLE 0
    3738#endif
    3839
    39 #if HAVE_AUBIO_DOUBLE
    40 #define AUBIO_SINGLE_PRECISION 0
    41 #else
    42 #define AUBIO_SINGLE_PRECISION 1
    43 #endif
    44 
    4540/** short sample format (32 or 64 bits) */
    46 #if AUBIO_SINGLE_PRECISION
     41#if !HAVE_AUBIO_DOUBLE
    4742typedef float        smpl_t;
     43/** print format for sample in single precision */
    4844#define AUBIO_SMPL_FMT "%f"
    4945#else
    5046typedef double       smpl_t;
     47/** print format for double in single precision */
    5148#define AUBIO_SMPL_FMT "%lf"
    5249#endif
    5350/** long sample format (64 bits or more) */
    54 #if AUBIO_SINGLE_PRECISION
     51#if !HAVE_AUBIO_DOUBLE
    5552typedef double       lsmp_t;
     53/** print format for sample in double precision */
    5654#define AUBIO_LSMP_FMT "%lf"
    5755#else
    5856typedef long double  lsmp_t;
     57/** print format for double in double precision */
    5958#define AUBIO_LSMP_FMT "%Lf"
    6059#endif
Note: See TracChangeset for help on using the changeset viewer.