Thanks for the replies.
Ian, I did try the method of using a decoding stream. So like you said, I created a decoding stream, simply called get_data in my recording call back, setup an fx on the decoding stream, and then save the buffer of the decoding stream to an external buffer(in the stream call back), and save that buffer to disk, like it is does in rectest.
But what happens is that I can hear the effect while it is recording, but when I playback the file (in media player), it does not have the effect on it. I thought the buffer of the decoding stream should have the effect on it, but apparently not, because that is what I'm saving, and the effect is not there.
Any ideas?
Thanks a lot
Sam