Closed SenthilNexware closed 3 years ago
yeah, me too. Could someone please assist us with this regard.
Can you verify if audioSessionId
is working?
Yes audioSessionId is working fine in android 9 and 8, but Equalizer not working in android 9 devices(Sounds are not changing)
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
I will check it now and update here.
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
The value is -5
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
Which device you have tested? i have tested with samsung devices (OS:5,7,8,9). this library working only with android 8 devices
it worked with me in android P Nokia but don't work in android P huawei Is there a solution?
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
this library is working fine in Android 8. but not in Android 9