the timer callback function does not take any parameters, so you should save the current values for the char effect and volume in global variables that are visible within the callback or implement the business logic into the callback
the timer callback function does not take any parameters, so you should save the current values for the char effect and volume in global variables that are visible within the callback or implement the business logic into the callback