62 #define __sdram __attribute__((section(".sdram")))
72 k_user_revfx_param_reserved0,
75 k_num_user_revfx_param_id
79 typedef void (*UserRevFXFuncEntry)(uint32_t platform, uint32_t api);
81 typedef void (*UserRevFXFuncInit)(uint32_t platform, uint32_t api);
83 typedef void (*UserRevFXFuncProcess)(
float *xn, uint32_t frames);
85 typedef void (*UserRevFXSuspend)(void);
87 typedef void (*UserRevFXResume)(void);
89 typedef void (*UserRevFXFuncParam)(uint8_t index, int32_t value);
91 typedef void (*UserRevFXFuncDummy)(void);
95 typedef struct user_revfx_hook_table {
101 UserRevFXFuncInit func_entry;
102 UserRevFXFuncProcess func_process;
103 UserRevFXSuspend func_suspend;
104 UserRevFXResume func_resume;
105 UserRevFXFuncParam func_param;
106 UserRevFXFuncDummy reserved1[7];
107 } user_revfx_hook_table_t;
111 #pragma pack(push, 1)
112 typedef struct user_revfx_data {
113 user_prg_header_t header;
114 user_revfx_hook_table_t hooks;
124 #define REVFX_INIT __attribute__((used)) _hook_init
125 #define REVFX_PROCESS __attribute__((used)) _hook_process
126 #define REVFX_SUSPEND __attribute__((used)) _hook_suspend
127 #define REVFX_RESUME __attribute__((used)) _hook_resume
128 #define REVFX_PARAM __attribute__((used)) _hook_param
131 void _entry(uint32_t platform, uint32_t api);
139 void _hook_init(uint32_t platform, uint32_t api);
185 #endif // __userrevfx_h