I would like to work with own resource files using SDL v1.2 (including sdl_image and sdl_mixer). Reading and writing SDL_Surface from or to binary files works great, using SDL_LoadBMP_RW and SDL_SaveBMP_RW in case of SDL_RWFromFP. Unfortunately I cannot find the equivalent using MixChunk from SDL_mixer.h. I only found Mix_LoadWAV_RW (http://sdl.beuc.net/sdl.wiki/Mix_LoadWAV_RW) but no such Mix_SaveWAV_RW or so.
What’s the way to write sounds into resource files?
/EDIT: I am using C++ - sorry, I forgot to write this