12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061 |
- #ifndef GAIN_ANALYSIS_H
- #define GAIN_ANALYSIS_H
- #include <stddef.h>
- #include <bfc/platform/export.h>
- #define GAIN_NOT_ENOUGH_SAMPLES -24601
- #define GAIN_ANALYSIS_ERROR 0
- #define GAIN_ANALYSIS_OK 1
- #define INIT_GAIN_ANALYSIS_ERROR 0
- #define INIT_GAIN_ANALYSIS_OK 1
- #ifdef __cplusplus
- extern "C"
- {
- #endif
- typedef float Float_t;
- DLLEXPORT void * WACreateRGContext();
- DLLEXPORT void WAFreeRGContext(void *context);
- int DLLEXPORT WAInitGainAnalysis(void *context, long samplefreq);
- int DLLEXPORT WAAnalyzeSamples(void *context, const Float_t* left_samples, const Float_t* right_samples, size_t num_samples, int num_channels);
- int DLLEXPORT WAResetSampleFrequency ( void *context, long samplefreq );
- Float_t DLLEXPORT WAGetTitleGain(void *context);
- Float_t DLLEXPORT WAGetAlbumGain(void *context);
- #ifdef __cplusplus
- }
- #endif
- #endif
|