Sound inreaction

I would like to be able to have my demos interackt with sound, like winamp pluggins. Is there an api or a simpel way to via the soundcard interuppt an eventloop? Is there an eventcallback in SDL for this?