diff options
author | Jamie Bullock <jamie@postlude.co.uk> | 2006-12-15 21:17:12 +0000 |
---|---|---|
committer | Jamie Bullock <jamie@postlude.co.uk> | 2006-12-15 21:17:12 +0000 |
commit | 18fc7723fd66941f394c1657c48bb996670d4ac5 (patch) | |
tree | a86ad8b11263af74875dd979f7d94315a4ae49ed /xtract/xtract_vector.h | |
parent | 251e328008d541478aba71c46a7444ee2283bcbf (diff) | |
download | LibXtract-18fc7723fd66941f394c1657c48bb996670d4ac5.tar.gz LibXtract-18fc7723fd66941f394c1657c48bb996670d4ac5.tar.bz2 LibXtract-18fc7723fd66941f394c1657c48bb996670d4ac5.zip |
Numerous fixes and enhancements, see ChangeLog.
Diffstat (limited to 'xtract/xtract_vector.h')
-rw-r--r-- | xtract/xtract_vector.h | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/xtract/xtract_vector.h b/xtract/xtract_vector.h index a8b0550..215c782 100644 --- a/xtract/xtract_vector.h +++ b/xtract/xtract_vector.h @@ -41,7 +41,7 @@ extern "C" { * \param *argv: a pointer to NULL * \param *result: the magnitude spectrum of N values from the array pointed to by *data */ -int xtract_magnitude_spectrum(float *data, int N, void *argv, float *result); +int xtract_magnitude_spectrum(const float *data, const int N, const void *argv, float *result); /** \brief Extract autocorrelation from time domain signal using FFT based method * @@ -50,7 +50,7 @@ int xtract_magnitude_spectrum(float *data, int N, void *argv, float *result); * \param *argv: a pointer to NULL * \param *result: the autocorrelation of N values from the array pointed to by *data */ -int xtract_autocorrelation_fft(float *data, int N, void *argv, float *result); +int xtract_autocorrelation_fft(const float *data, const int N, const void *argv, float *result); /** \brief Extract Mel Frequency Cepstral Coefficients based on a method described by Rabiner * @@ -61,7 +61,7 @@ int xtract_autocorrelation_fft(float *data, int N, void *argv, float *result); * * The data structure pointed to by *argv must be obtained by first calling xtract_init_mfcc */ -int xtract_mfcc(float *data, int N, void *argv, float *result); +int xtract_mfcc(const float *data, const int N, const void *argv, float *result); /** \brief Extract the Discrete Cosine transform of a time domain signal * \param *data: a pointer to the first element in an array of floats representing an audio vector @@ -69,7 +69,7 @@ int xtract_mfcc(float *data, int N, void *argv, float *result); * \param *argv: a pointer to NULL * \param *result: a pointer to an array containing resultant dct coefficients */ -int xtract_dct(float *data, int N, void *argv, float *result); +int xtract_dct(const float *data, const int N, const void *argv, float *result); /** \brief Extract autocorrelation from time domain signal using time-domain autocorrelation technique * @@ -78,7 +78,7 @@ int xtract_dct(float *data, int N, void *argv, float *result); * \param *argv: a pointer to NULL * \param *result: the autocorrelation of N values from the array pointed to by *data */ -int xtract_autocorrelation(float *data, int N, void *argv, float *result); +int xtract_autocorrelation(const float *data, const int N, const void *argv, float *result); /** \brief Extract Average Magnitude Difference Function from time domain signal * @@ -87,7 +87,7 @@ int xtract_autocorrelation(float *data, int N, void *argv, float *result); * \param *argv: a pointer to NULL * \param *result: the AMDF of N values from the array pointed to by *data */ -int xtract_amdf(float *data, int N, void *argv, float *result); +int xtract_amdf(const float *data, const int N, const void *argv, float *result); /** \brief Extract Average Squared Difference Function from time domain signal * @@ -96,7 +96,7 @@ int xtract_amdf(float *data, int N, void *argv, float *result); * \param *argv: a pointer to NULL * \param *result: the ASDF of N values from the array pointed to by *data */ -int xtract_asdf(float *data, int N, void *argv, float *result); +int xtract_asdf(const float *data, const int N, const void *argv, float *result); /** \brief Extract Bark band coefficients based on a method * \param *data: a pointer to the first element in an array of floats representing the magnitude spectrum of an audio vector @@ -107,7 +107,7 @@ int xtract_asdf(float *data, int N, void *argv, float *result); * The limits array pointed to by *argv must be obtained by first calling xtract_init_bark * */ -int xtract_bark_coefficients(float *data, int N, void *argv, float *result); +int xtract_bark_coefficients(const float *data, const int N, const void *argv, float *result); /** \brief Extract the frequency and amplitude of spectral peaks from a magnitude spectrum * \param *data: a pointer to the first element in an array of floats representing the magnitude spectrum of an audio vector @@ -115,7 +115,7 @@ int xtract_bark_coefficients(float *data, int N, void *argv, float *result); * \param *argv: a pointer to an array containing peak threshold as percentage below max peak, and sample rate * \param *result: a pointer to an array of size N, containing N/2 freqs and N/2 amplitudes, amplitudes are on a decibel scale with dbFS = 0 */ -int xtract_peaks(float *data, int N, void *argv, float *result); +int xtract_peaks(const float *data, const int N, const void *argv, float *result); /** \brief Extract the harmonic spectrum of from a of a peak spectrum * \param *data: a pointer to the first element in an array of floats representing the peak spectrum of an audio vector (e.g. *result from xtract_peaks). It is expected that the first half of the array pointed to by *data will contain frequencies for each peak considered, and the the second half will contain the respective amplitudes @@ -123,7 +123,7 @@ int xtract_peaks(float *data, int N, void *argv, float *result); * \param *argv: a pointer to an array containing the fundamental (f0) of the spectrum, and a threshold (t) where 0<=t<=1.0, and t determines the distance from the nearest harmonic number within which a partial can be considered harmonic. * \param *result: a pointer to an array of size N containing N/2 freqs and N/2 amplitudes, amplitudes are on a decibel scale with dbFS = 0 */ -int xtract_harmonics(float *data, int N, void *argv, float *result); +int xtract_harmonics(const float *data, const int N, const void *argv, float *result); /** @} */ |