How do I import a stereo wav file in a DSP plugin? Seems like it should be easy considering fb2k is an audio app.
Right now I'm using a 3rd-party dll to do it, but it seems a little ridiculous. Plus I hate needing to have two dll's for my plugin. All I need to do is read the data from two stereo wav files when my DSP plugin initializes so I can perform stereo convolution.
A note on why stereo convolution is useful: the current "convolve" plugin is R->R and L->L capable only. Stereo convolution sends the R signal to the L channel (under one convolution) and to the R channel (under a different convolution), and the same for L->(L and R). This way I can perform head-related transfer functions (HRTFs) to my music to improve headphone listening. HRTFs are approximated by crossfeed and bs2b, but why be approximate when you can be precise?
I have all the basics complete now---wav input, config dialog, efficient stereo convolution using DHT---so it's time to clean up the code, debug, and add safeguards. Wav importing is my first target for improvement.
