Plugins, or conditional inserts of different code

I finally have my audio player program set up to handle real time processing. So I have a place in my callback function where I can process streaming data. I'm weary of calling other functions from this function, because it loops continuously, and I don't want to risk stack overflow.

I want to set it up so that different effects can be chained together.

But, I don't want to turn this spot where I process data into a mess of conditional statements. So I want to be able to insert sections of code to process the data somehow, or even better if I could figure out how to use or design a plugin management system.

I'm wondering if Gmodule is what I'm looking for?

http://developer.gnome.org/glib/2.32/glib-Dynamic-Loading-of-Modules.html

I've also read something suggesting using a scripting language like lua might be useful for something like this?

Anyone have any ideas, or tips on designing this type of thing?


Last edited on
Topic archived. No new replies allowed.