Ok, I´m comming back to the issue of making a wav to aiff converter. I was arguing with myself a bit if I should start a new thread or continue hmm.
I´m thinking about what would be the best way of doing this. A normal wave header (old one not bwf) is 44 bytes and little endian. The shortest possible aiff header without any meta data is 54 bytes and that is what I´m going for here. And aiff is big endian. So, I have the basic aiff header set up in three structs, FORM, COMM and SSND. I need to get data from the wave header about file size, bitdepth and so forth and in some cases perform some calculations on it and then assign the value to the variables in my structs.
Now if I write back the aiff header to the old file I will overwrite the data by 10 bytes and the data will still be little endian.
So what´s the best way of doing this? I´we been thinking of reading in the complete wav file into an array, perform an endian conversion on the complete array, copy data to my aiff structs, then write my aiff header to the file, and finaly the sound data itself from the array.
This is just my own ideas on this, drawn from my limited experience in C haha. So do anyone here have any input on the basic steps involved in this process?