62 #define __sdram __attribute__((section(".sdram")))
72 k_user_delfx_param_reserved0,
75 k_num_user_delfx_param_id
79 typedef void (*UserDelFXFuncEntry)(uint32_t platform, uint32_t api);
81 typedef void (*UserDelFXFuncInit)(uint32_t platform, uint32_t api);
83 typedef void (*UserDelFXFuncProcess)(
float *xn, uint32_t frames);
85 typedef void (*UserDelFXSuspend)(void);
87 typedef void (*UserDelFXResume)(void);
89 typedef void (*UserDelFXFuncParam)(uint8_t index, int32_t value);
91 typedef void (*UserDelFXFuncDummy)(void);
95 typedef struct user_delfx_hook_table {
101 UserDelFXFuncEntry func_entry;
102 UserDelFXFuncProcess func_process;
103 UserDelFXSuspend func_suspend;
104 UserDelFXResume func_resume;
105 UserDelFXFuncParam func_param;
106 UserDelFXFuncDummy reserved1[7];
107 } user_delfx_hook_table_t;
111 #pragma pack(push, 1)
112 typedef struct user_delfx_data {
113 user_prg_header_t header;
114 user_delfx_hook_table_t hooks;
124 #define DELFX_INIT __attribute__((used)) _hook_init
125 #define DELFX_PROCESS __attribute__((used)) _hook_process
126 #define DELFX_SUSPEND __attribute__((used)) _hook_suspend
127 #define DELFX_RESUME __attribute__((used)) _hook_resume
128 #define DELFX_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 // __userdelfx_h