63 #define __sdram __attribute__((section(".sdram")))
73 k_num_user_modfx_param_id
77 typedef void (*UserModFXFuncEntry)(uint32_t platform, uint32_t api);
79 typedef void (*UserModFXFuncInit)(uint32_t platform, uint32_t api);
81 typedef void (*UserModFXFuncProcess)(
const float *main_xn,
float *main_yn,
82 const float *sub_xn,
float *sub_yn,
85 typedef void (*UserModFXSuspend)(void);
87 typedef void (*UserModFXResume)(void);
89 typedef void (*UserModFXFuncParam)(uint8_t index, int32_t value);
91 typedef void (*UserModFXFuncDummy)(void);
95 typedef struct user_modfx_hook_table {
101 UserModFXFuncEntry func_entry;
102 UserModFXFuncProcess func_process;
103 UserModFXSuspend func_suspend;
104 UserModFXResume func_resume;
105 UserModFXFuncParam func_param;
106 UserModFXFuncDummy reserved1[7];
107 } user_modfx_hook_table_t;
111 #pragma pack(push, 1)
112 typedef struct user_modfx_data {
113 user_prg_header_t header;
114 user_modfx_hook_table_t hooks;
124 #define MODFX_INIT __attribute__((used)) _hook_init
125 #define MODFX_PROCESS __attribute__((used)) _hook_process
126 #define MODFX_SUSPEND __attribute__((used)) _hook_suspend
127 #define MODFX_RESUME __attribute__((used)) _hook_resume
128 #define MODFX_PARAM __attribute__((used)) _hook_param
131 void _entry(uint32_t platform, uint32_t api);
139 void _hook_init(uint32_t platform, uint32_t api);
155 const float *sub_xn,
float *sub_yn,
188 #endif // __usermodfx_h