22 #ifndef AUDIO_EFFECTS_HMI_HMIFXLIB_H 23 #define AUDIO_EFFECTS_HMI_HMIFXLIB_H 25 #include "audio/effects/hmi/hmifxfp.h" 28 class SeekableReadStream;
42 int hmiFXGetInterface(
int interfaceId,
HMIInterface **outInterface);
43 unsigned int hmiFXGenerateQueryString(
char *buffer,
const char *prefix,
unsigned int id);
48 int hmiFXPresetDestroy(
HMIPreset *preset);
50 int hmiFXPresetLoadLibrary(
HMILibrary **outLib,
const char *fileName);
52 int hmiFXPresetFreeLibrary(
HMILibrary *library);
56 int hmiFXPresetRelease(
HMIPreset *preset);
57 int hmiFXPresetGetRouting(
HMIPreset *preset, uint32 *routingOut);
58 void hmiFXSetWaveFmtEx(
HMIFormat *format,
int sampleRate, uint16 bitsPerSample, uint16 channels);
60 int hmiFXPresetDestroyInstance(
HMIPreset *instance);
63 void *hmiFXHeapAlloc(
int size);
64 void hmiFXHeapFree(
void *ptr);
66 void *hmiFXHeapReset();
69 int convertPCMToFloat(
HMIPreset *preset,
const uint8 *buffer,
int samples);
70 int convertFloatToPCM(
HMIPreset *preset, uint8 *buffer,
int samples,
int clampOutput);
73 void processEffectChain(
HMIPreset *preset);
82 int readSectionString(
HMIFileDescriptor *desc,
const char *key,
char *value,
int size);
86 unsigned int _numLoadedInterfaces = 0;
87 unsigned int _curInterfaceIndex = 0;
89 uint8 *_systemHeap =
nullptr;
90 uint8 *_heapCursor =
nullptr;
91 uint8 *_heapEnd =
nullptr;
Definition: hmi_types.h:138
Definition: hmi_types.h:89
Definition: hmi_types.h:112
Definition: hmi_types.h:126
Definition: hmi_interface.h:31
Definition: hmifxlib.h:33
Definition: hmi_types.h:117
Definition: algorithm.h:29
Definition: hmi_types.h:70