igorski / MWEngine

Audio engine and DSP library for Android, written in C++ providing low latency performance within a musical context, while providing a Java/Kotlin API. Supports both OpenSL and AAudio.
MIT License
257 stars 45 forks source link

Is it possible to remove effects after recorded the audio? #157

Closed YogarajRamesh closed 2 years ago

YogarajRamesh commented 2 years ago

Hi @igorski

Like you said I am able to add effect to live microphone input.

MWEngine.getInputChannel().getProcessingChain().addProcessor(reverb);

The effect is works fine. But I want to save the raw audio( with out effects ). How can remove the reverb effect which already merged in output file? Or is there any way to save the file without effect in it?

igorski commented 2 years ago

Well, you can't remove the reverb. So short answer is no :)

But I think you could probably could benefit from having the choice of specifying whether you want to record the input pre-mix (before the effects chain, so the raw input) or post-mix (after the effects chain, which is the current case).

YogarajRamesh commented 2 years ago

Thank you @igorski

igorski commented 2 years ago

Maybe I wasn't clear with my reply 😅 it's not possible now, but I will invest some time in making it possible.

I have reopened the issue just so we can keep track of it.

YogarajRamesh commented 2 years ago

😀thank you so much @igorski

igorski commented 2 years ago

This has been implemented in e0a6287df4e65b8a45d55080ed4f190155d04b67

You now need to pass a boolean value to the input recording method. When true, the ProcessingChain of the input channel is omitted (you will hear the effects applied in the output, but the recorded input is completely dry). When false, this records with the effects of the input channel applied.

MWEngine.startInputRecording( outputFileName, true )

YogarajRamesh commented 2 years ago

Hi @igorski ,

Thank you for this feature. it works really well.

igorski commented 2 years ago

Good to hear, it's also a nice addition the engines features so thanks for the suggestion!