Writing to file using SDL-mixer

hey all,

we’re working on a visual music piece using sdl, and I was wondering
how we could write data to audio files and video files. some of it is
just computer-generated music, and some of it is computer generated
audio-video. we’d like to ‘record’ both the aspects. is it better to do this
SDL (if possible) or with some other trick using C/C++?

if you have any relevant links, or examples of code, I’ll be highly obliged.

------- -.-
1/f ))) --.
------- …