[PATCH] audio filter: use tanhf for soft clipping in equalizer
Abhinav Aswin <[email protected]> Tue, 3 Mar 2026 02:28:48 +0530
| Newsgroups | gmane.comp.video.videolan.vlc.devel |
|---|---|
| Message-ID | <CAAat4H028-258K1NXe_ZS18tYo6hkDBt9GMC2oDuGVK0Sak3Pg@mail.gmail.com> |
--0000000000002771f4064c10db0d Content-Type: multipart/alternative; boundary="0000000000002771f3064c10db0b" --0000000000002771f3064c10db0b Content-Type: text/plain; charset="UTF-8" Hello VLC developers, I recently built VLC from source and worked on the audio equalizer filter. This patch introduces soft clipping using tanhf() in the equalizer output to reduce distortion when the signal is amplified. The change is limited to modules/audio_filter/equalizer.c. I am interested in contributing further as part of Google Summer of Code 2026 and would appreciate any feedback or suggestions. Thank you for your time. Best regards, Abhinav Aswin --0000000000002771f3064c10db0b Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr"><div dir=3D"ltr"><div dir=3D"ltr"><div><div><span id=3D"m_= 1254108796533084484m_-8841353236063677288gmail-avWBGd-6">Hello VLC develope= rs,</span></div></div><div><div><div><br>I recently built VLC from source a= nd worked on the audio equalizer filter.<br>This patch introduces soft clip= ping using tanhf() in the equalizer output<br>to reduce distortion when the= signal is amplified.<br><br>The change is limited to modules/audio_filter/= equalizer.c.<br><br>I am interested in contributing further as part of Goog= le Summer of Code 2026<br>and would appreciate any feedback or suggestions.= <br><br>Thank you for your time.<br><br>Best regards,<br>Abhinav Aswin</div= ></div></div><br></div> </div> </div> --0000000000002771f3064c10db0b-- --0000000000002771f4064c10db0d Content-Type: text/x-patch; charset="US-ASCII"; name="0001-audio-filter-use-tanhf-for-soft-clipping-in-equalize.patch" Content-Disposition: attachment; filename="0001-audio-filter-use-tanhf-for-soft-clipping-in-equalize.patch" Content-Transfer-Encoding: base64 Content-ID: <f_mm9nvgfh0> X-Attachment-Id: f_mm9nvgfh0 RnJvbSA0YTRkZWFmYWUyZTRlMjY4NjM0ZWYzM2IxMzdlNzM4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OX0ZBQ1RPUiAqIHgyICsg byApOworICAgICAgICAgICAgICAgIG91dFtjaF0gPSB0YW5oZih5KTsKICAgICAgICAgICAgIH0K ICAgICAgICAgICAgIGVsc2UKICAgICAgICAgICAgIHsKICAgICAgICAgICAgICAgICAvKiBXZSBh ZGQgc291cmNlIFBDTSArIGZpbHRlcmVkIFBDTSAqLwotICAgICAgICAgICAgICAgIG91dFtjaF0g PSBwX3N5cy0+Zl9nYW1wICooIEVRWl9JTl9GQUNUT1IgKiB4ICsgbyApOworICAgICAgICAgICAg ICAgIGZsb2F0IHkgPSBwX3N5cy0+Zl9nYW1wICogKCBFUVpfSU5fRkFDVE9SICogeCArIG8gKTsK KyAgICAgICAgICAgICAgICBvdXRbY2hdID0gdGFuaGYoeSk7CiAgICAgICAgICAgICB9CiAgICAg ICAgIH0KIAotLSAKMi40My4wCgo= --0000000000002771f4064c10db0d Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ vlc-devel mailing list To unsubscribe or modify your subscription options: https://mailman.videolan.org/listinfo/vlc-devel --0000000000002771f4064c10db0d--