Equivalent of SDL_AudioSpec (Midi Synth Plugin)

I want to implement GitHub - schellingb/TinySoundFont: SoundFont2 synthesizer library in a single C/C++ file to make Midi Synthesizer. But, i not found equivalent of SDL_AudioSpec.callback to apply Audio modification.

Example: