comparison xtract/libxtract.h @ 113:72a9a393d5bd

- Fixed bugs in xtract_flatness(), or at least added necessary documentation and error checking to avoid problems - Added xtract_is_denormal() helper function and XTRACT_DENORMAL_FOUND return code - Replaced all instances of log, sqrt, exp etc. with respective floating point counterparts (logf etc.) - Added check for architecture endianness to configure script - Bug fix to PD example, now no longer crashes if no arguments are given - Minor documentation updates
author Jamie Bullock <jamie@postlude.co.uk>
date Fri, 15 Feb 2008 12:43:13 +0000
parents c8502708853b
children f5040ed4e555
comparison
equal deleted inserted replaced
112:a76501dc5307 113:72a9a393d5bd
94 XTRACT_SPREAD, 94 XTRACT_SPREAD,
95 XTRACT_ZCR, 95 XTRACT_ZCR,
96 XTRACT_ROLLOFF, 96 XTRACT_ROLLOFF,
97 XTRACT_LOUDNESS, 97 XTRACT_LOUDNESS,
98 XTRACT_FLATNESS, 98 XTRACT_FLATNESS,
99 XTRACT_FLATNESS_DB,
99 XTRACT_TONALITY, 100 XTRACT_TONALITY,
100 XTRACT_CREST, 101 XTRACT_CREST,
101 XTRACT_NOISINESS, 102 XTRACT_NOISINESS,
102 XTRACT_RMS_AMPLITUDE, 103 XTRACT_RMS_AMPLITUDE,
103 XTRACT_SPECTRAL_INHARMONICITY, 104 XTRACT_SPECTRAL_INHARMONICITY,
163 enum xtract_return_codes_ { 164 enum xtract_return_codes_ {
164 XTRACT_SUCCESS, 165 XTRACT_SUCCESS,
165 XTRACT_MALLOC_FAILED, 166 XTRACT_MALLOC_FAILED,
166 XTRACT_BAD_ARGV, 167 XTRACT_BAD_ARGV,
167 XTRACT_BAD_VECTOR_SIZE, 168 XTRACT_BAD_VECTOR_SIZE,
168 XTRACT_NO_RESULT, 169 XTRACT_DENORMAL_FOUND,
170 XTRACT_NO_RESULT, /* This usually occurs when the correct calculation cannot take place because required data is missing or would result in a NaN or infinity/-infinity. Under these curcumstances 0.f is usually given by *result */
169 XTRACT_FEATURE_NOT_IMPLEMENTED 171 XTRACT_FEATURE_NOT_IMPLEMENTED
170 }; 172 };
171 173
172 /** \brief Enumeration of spectrum types */ 174 /** \brief Enumeration of spectrum types */
173 enum xtract_spectrum_ { 175 enum xtract_spectrum_ {