Hi!
For a project I need to implement an application that read a wav file and play a
filtered version of this in real-time. The parameters of the filter can be
modified in real-time.
The filter is composed of two blocks, the first block is a delay line, and the
two channel (left and right) must be delayed of differents values.
For example if delay[0] is the delay for the left channel, and delay[1] is the
delay for the right channel, I must do this:
Shift the left channel data of delay[0] values and then add is original values,
shift the right channel data of delay[1] values and then add is original values.
Note that I don’t deletes the original values, but I shift them.
If I do this in “no real-time”:
- Read wav file
- Shift left and right channal
- Save the results as a new wav file
With this “no real-time” approach, it’s run.
But for my project I need to change the delay value on real-time, and I need to
see the results in real-time.
It’s possibile to do this with SDL_mixer and with Mix_RegisterEffect() function?
I can call a my filter, where I change dinamically the delay line?
Thanks.