I am developing one audio processing utility in Qt(C++). I can hear audio from speaker when I speak through mike using my qt code. I need to apply echo effect to this audio output. In my code I am receiving audio using a 16 bit byte array.
How I can apply echo effect to this sound sample.
I am developing one audio processing utility in Qt(C++). I can hear audio from
Share
I think the simplest way to make an echo is to play the sound twice, near-simultaneously, with a slight delay between the two instances. You might also make the volume of the second instance a bit less than the first instance.
You can do this by either mixing the sample stream together with itself (with an offset) and then playing the result, or possibly by creating two QAudioOutput devices and playing the sound in both of them (I haven’t tried the latter though, so I don’t know for sure if it would work)