aboutsummaryrefslogtreecommitdiff
path: root/xtract/libxtract.h
diff options
context:
space:
mode:
authorJamie Bullock <jamie@postlude.co.uk>2008-02-15 12:43:13 +0000
committerJamie Bullock <jamie@postlude.co.uk>2008-02-15 12:43:13 +0000
commite876da1b38221d8020d81b72926d2dee5c2bdc55 (patch)
tree5795d6dca0e668a43298f1099a61f19831f419f7 /xtract/libxtract.h
parent24738b0d1371876dc18cb21b516b3e43984e6dbc (diff)
downloadLibXtract-e876da1b38221d8020d81b72926d2dee5c2bdc55.tar.gz
LibXtract-e876da1b38221d8020d81b72926d2dee5c2bdc55.tar.bz2
LibXtract-e876da1b38221d8020d81b72926d2dee5c2bdc55.zip
- 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
Diffstat (limited to 'xtract/libxtract.h')
-rw-r--r--xtract/libxtract.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/xtract/libxtract.h b/xtract/libxtract.h
index 32d3c31..2fad148 100644
--- a/xtract/libxtract.h
+++ b/xtract/libxtract.h
@@ -96,6 +96,7 @@ enum xtract_features_ {
XTRACT_ROLLOFF,
XTRACT_LOUDNESS,
XTRACT_FLATNESS,
+ XTRACT_FLATNESS_DB,
XTRACT_TONALITY,
XTRACT_CREST,
XTRACT_NOISINESS,
@@ -165,7 +166,8 @@ enum xtract_return_codes_ {
XTRACT_MALLOC_FAILED,
XTRACT_BAD_ARGV,
XTRACT_BAD_VECTOR_SIZE,
- XTRACT_NO_RESULT,
+ XTRACT_DENORMAL_FOUND,
+ 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 */
XTRACT_FEATURE_NOT_IMPLEMENTED
};