I'm writing a c++ code that reads a wav file and stores read values to a 1D array of integers. After doing some manipulation, I am able to write the values of the array to a new output wav. I use libsndfile library to do the reading and writing (sf_read & sf_write).
I then play this output wav by using Audiere library. I know the manipulation works since the sound played is the one I expect.
My question is how can I play the contents of the array without having to write it to secondary storage just to have it read again?
Thanks for your help! ^_^