Page 2 of 2

PostPosted: May 12th, 2007, 8:02 pm
by Baxsan
I've done some reading, but I can't figure out how to blend 2 wav files into one. Someone suggested to get samples from both files (on the same position), then get average and write into new file (to the same position).
Could you give me an example? Especially about the average part.

PostPosted: May 13th, 2007, 7:13 am
by Johnny_Bit
average for single sound frame: (sound1 + sound2)/2

PostPosted: May 13th, 2007, 11:27 am
by Baxsan
Yes, but how can I get the sound frame in the first place? Is it done with TWaveStreamAdapter.read? I've never dealt with pointers and buffers beforce, could you give me a simple example, so I can study it?

Like reading the frame from one file and then writing it into another file.