Hawaiian Pizza
Hawaiian Pizza

Reputation: 164

How to add an Android AudioEffect LowPass Filter?

I'm trying to add a LowPass filter to an AudioTrack or MediaPlayer, but I don't think it exists.

It seems that the Android Audio Framework, unlike the Web Audio API and iOS, doesn't provide such effect at all: https://developer.android.com/reference/kotlin/android/media/audiofx/AudioEffect

Is it possible at all in this case to add a LowPass Filter or any BiquadFilter, for example? Do I have to create my AudioEffect? I looked everywhere but couldn't find any.

I'm honestly not sure what to do or how to go about adding a simple LowPass Filter.

Anything would help!

Upvotes: 0

Views: 870

Answers (1)

ox black
ox black

Reputation: 153

There is no build-in solution. You have to build your own Low-Pass Filter.

But: its not that difficult. Here is a very good reference with code examples on how to build:

digital Butterworth and Chebyshev Filters

Have fun!

Upvotes: 1

Related Questions