Ok. I've got convolution to "work". It's really slow through / unusable for samples longer than few seconds because of that. Or maybe its because of AudioFileReader reading the whole file into memory.
I've used 2x AudioFileReader for the sound and the impulse response.
Then I've made two float arrays for those with a fixed size of 88200 (first 2 seconds of the sound) and 44100 (the size of the impulse response).
I wrote the convolution to another float array (convolution result) and then
The sample is weird through. Sounds amplified its 4 seconds in length instead of 2 (88200). Something wrong with the float array sizes?
I've used 2x AudioFileReader for the sound and the impulse response.
Then I've made two float arrays for those with a fixed size of 88200 (first 2 seconds of the sound) and 44100 (the size of the impulse response).
I wrote the convolution to another float array (convolution result) and then
writer.WriteSamples(convolutionResult, 0, 88200);
out to a file.The sample is weird through. Sounds amplified its 4 seconds in length instead of 2 (88200). Something wrong with the float array sizes?