[Android] Audio sessions are not opened and closed properly

Country

 

Device

Any

Operating System

Android

 

My Question or Issue

Spotify for Android does not close sessions when audio playback is paused or stopped, unless you fast-forward in a track. In both cases Android expects this intent to be broadcasted: https://developer.android.com/reference/android/media/audiofx/AudioEffect.html#ACTION_CLOSE_AUDIO_EF...
If this intent is not broadcasted, audio effects that were applied to this session stay applied. This causes some effects not to be available to any other audio session and unnecessary consumption of system resources.
Bonus: When fast-forwarding a track without playing music, random sessions that were never opened are still closed

When opening a session, Android expects this intent to be broadcasted: https://developer.android.com/reference/android/media/audiofx/AudioEffect.html#ACTION_OPEN_AUDIO_EFF...
This intent is also sent when you fast-forward in a track that is currently playing. Whenever a user has audio effects applied, some delay is audible caused by the initialization of these effects on every newly opened session. This could be solved if the same audio session is reused.

Hey folks,

 

Thanks for your patience while we looked into this issue.

 

We’re happy to say that this should now be fixed for everyone!

 

If you’re still experiencing this issue, can you make a new thread in the relevant board? We'll get back to you there.

 

Thanks!

Comments
Harpin14789
Newbie

I think this issue needs to be addressed. 

Ayuized
Visitor

Yes, this issue is also present on my device as well!

henrywylde
Newbie

Hope this works out

R0BiN0705
Casual Listener
I'm experiencing the same issue and it's quite annoying. Please adhere to modern development Standards.
Ebeatfla
Visitor

Yes, Spotify please fix this.  Unfriendly to tech.

MadhavNemani
Visitor

This issue needs to be addressed asap 

Moderator
Moderator
Status changed to: Under investigation

Hey folks,

Thanks for reporting this to us!

We’ve now passed this on to the relevant team, who are currently looking into it.

 

We’ll keep you posted and let you know as soon as we have any updates on this.

Moderator
Moderator
Status changed to: Fixed

Hey folks,

 

Thanks for your patience while we looked into this issue.

 

We’re happy to say that this should now be fixed for everyone!

 

If you’re still experiencing this issue, can you make a new thread in the relevant board? We'll get back to you there.

 

Thanks!