diff options
author | Jamie Bullock <jamie@postlude.co.uk> | 2007-03-19 18:58:21 +0000 |
---|---|---|
committer | Jamie Bullock <jamie@postlude.co.uk> | 2007-03-19 18:58:21 +0000 |
commit | 0f01e44455d7e70fd64e88c8e410cd40fbd2a2d0 (patch) | |
tree | f622227001ec2ba156b37060ce1aef92dc51cb63 /xtract/xtract_vector.h | |
parent | 091e54c0f13d72307be568daabe630bb3463393c (diff) | |
download | LibXtract-0f01e44455d7e70fd64e88c8e410cd40fbd2a2d0.tar.gz LibXtract-0f01e44455d7e70fd64e88c8e410cd40fbd2a2d0.tar.bz2 LibXtract-0f01e44455d7e70fd64e88c8e410cd40fbd2a2d0.zip |
Further updated xtract_spectrum() to hopefully fix fft iteration bug and nyquist/DC inclusion. Added new boolean argument 'withDC' to select whether the DC component is required in the output
Diffstat (limited to 'xtract/xtract_vector.h')
-rw-r--r-- | xtract/xtract_vector.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xtract/xtract_vector.h b/xtract/xtract_vector.h index d93f953..a3db0bd 100644 --- a/xtract/xtract_vector.h +++ b/xtract/xtract_vector.h @@ -38,7 +38,7 @@ extern "C" { * * \param *data: a pointer to the first element in an array of floats representing an audio vector * \param N: the number of array elements to be considered - * \param *argv: a pointer to an array of floats, the first representing (samplerate / N), the second will be cast to an integer and determines the spectrum type (e.g. XTRACT_MAGNITUDE_SPECTRUM, XTRACT_LOG_POWER_SPECTRUM) + * \param *argv: a pointer to an array of floats, the first representing (samplerate / N), the second will be cast to an integer and determines the spectrum type (e.g. XTRACT_MAGNITUDE_SPECTRUM, XTRACT_LOG_POWER_SPECTRUM). An optional third argument determines whether or not the DC component is included in the output. If argv[2] == 1, then the DC component is included in which case the size of the array pointed to by *result must be N+2. For any further use of the array pointed to by *result, the value of N must reflect the (larger) array size. * \param *result: a pointer to an array of size N containing N/2 magnitude/power/log magnitude/log power coefficients and N/2 bin frequencies. */ int xtract_spectrum(const float *data, const int N, const void *argv, float *result); |