i have written some code that adds waveforms together and handles this to a fixed length array, allowing for smooth playback of simultaneous frequencies.
i would like to, if possible, access the audio memory directly rather than writing to an array and using directsound to copy
Sorry i don't have the answers you require, but i am well impressed by your code. Being a rookie to DX programming and such i find it pretty much what i have been looking for, for a long time. I've been after a way to get the levels of the sound within the buffers.
I'm not sure if thats exactly what you are doing there but it looks similar. I am trying to modify the code in such a way as to put in a wav file instead of the tones that you are generating. I was wondering if you already had something along these lines.
If you do could you either post it or attach it to post?
Cheers if you could. If you can't then i'll just work my way through your osc project.