src/io/ioutils.h: add functions to check samplerate and channels, use in sink_*.c
[aubio.git] / src / aubio_priv.h
index e85231e..72ba091 100644 (file)
@@ -196,6 +196,9 @@ uint_t aubio_log(sint_t level, const char_t *fmt, ...);
 #define AUBIO_QUIT(_s)               exit(_s)
 #define AUBIO_SPRINTF                sprintf
 
 #define AUBIO_QUIT(_s)               exit(_s)
 #define AUBIO_SPRINTF                sprintf
 
+#define AUBIO_MAX_SAMPLERATE (192000*8)
+#define AUBIO_MAX_CHANNELS 1024
+
 /* pi and 2*pi */
 #ifndef M_PI
 #define PI         (3.14159265358979323846)
 /* pi and 2*pi */
 #ifndef M_PI
 #define PI         (3.14159265358979323846)
@@ -220,6 +223,7 @@ uint_t aubio_log(sint_t level, const char_t *fmt, ...);
 #define LOG        logf
 #define FLOOR      floorf
 #define CEIL       ceilf
 #define LOG        logf
 #define FLOOR      floorf
 #define CEIL       ceilf
+#define ATAN       atanf
 #define ATAN2      atan2f
 #else
 #define EXP        exp
 #define ATAN2      atan2f
 #else
 #define EXP        exp
@@ -232,6 +236,7 @@ uint_t aubio_log(sint_t level, const char_t *fmt, ...);
 #define LOG        log
 #define FLOOR      floor
 #define CEIL       ceil
 #define LOG        log
 #define FLOOR      floor
 #define CEIL       ceil
+#define ATAN       atan
 #define ATAN2      atan2
 #endif
 #define ROUND(x)   FLOOR(x+.5)
 #define ATAN2      atan2
 #endif
 #define ROUND(x)   FLOOR(x+.5)