bullheadandplato / AndroidEqualizer

Android Equalizer View that can also manage the audio track frequencies
Apache License 2.0
236 stars 72 forks source link

Equalizar not working Android pie version #4

Closed SenthilNexware closed 3 years ago

SenthilNexware commented 5 years ago

this library is working fine in Android 8. but not in Android 9

YuvarajRamesh commented 5 years ago

yeah, me too. Could someone please assist us with this regard.

bullheadandplato commented 5 years ago

Can you verify if audioSessionId is working?

SenthilNexware commented 5 years ago

Yes audioSessionId is working fine in android 9 and 8, but Equalizer not working in android 9 devices(Sounds are not changing)

SenthilNexware commented 5 years ago

In Android 9 device - mEqualizer.getEnabled() always returns false, even though i have manually added mEqualizer.setEnabled(true);

But it returns true in android 8 devices please let me know , if you need any additional details required

bullheadandplato commented 5 years ago

I will check it now and update here.

bullheadandplato commented 5 years ago

https://developer.android.com/reference/kotlin/android/media/audiofx/AudioEffect#setEnabled(kotlin.Boolean) setEnabled return int value can you check what value it returns? I have tested on android 9 but I am unable to produce this issue

SenthilNexware commented 5 years ago

The value is -5

bullheadandplato commented 5 years ago

https://developer.android.com/reference/kotlin/android/media/audiofx/AudioEffect#ERROR_INVALID_OPERATION:kotlin.Int It says you are enabling in wrong state. I think this issue is related to mediaPlayer

SenthilNexware commented 5 years ago

Which device you have tested? i have tested with samsung devices (OS:5,7,8,9). this library working only with android 8 devices

ayoubLTS commented 4 years ago

it worked with me in android P Nokia but don't work in android P huawei Is there a solution?

bullheadandplato commented 3 years ago

if mEqualizer.setEnabled(true) does not return 0 then it is issue related to device which I am afraid cannot be solved. check https://developer.android.com/reference/kotlin/android/media/audiofx/AudioEffect#setEnabled(kotlin.Boolean) for details