Hi, I am trying to mix many short audio files (wav or mp3), about 30 or 40 files, using DirectX8. I already studied the tutorial here of CVMichael and now I am with the SDK.

I've tried to access the primary buffer to get the packet of bytes already automatically mixed with DirectSound to save it to file, but it give me "error 5". I guess we can't direct access the sound by hardware anymore, post WinXP.

Now I'm trying to reproduce the sounds using the DirectMusic API, audiopaths in buffer chains, trying to make the automatic mixing in a secondary buffer, not primary, in order to access those bytes to be able to record them. Although I have not yet achieved it.

I do not know if my approach is wrong. I've been in this for several weeks because I've never worked with sounds.

Some clue?
Thank you.