jonathangarelick / SoundSeer

SoundSeer is a macOS app that shows your current song & controls in the menu bar.
122 stars 2 forks source link

flicker when manually selecting a new song #26

Open jonathangarelick opened 1 month ago

jonathangarelick commented 1 month ago

if you are in spotify and you manually click play on a different song (instead of something like next track) spotify will register playback state as stopped. the model will reset the data and there will be a visual flicker from soundseer icon to next song title

jonathangarelick commented 1 month ago

ooh this looks like a tough one 😆

jonathangarelick commented 1 month ago

api appears to be unreliable. now iffy replication

jonathangarelick commented 1 month ago

my first assumption is wrong. the problem is in the view. the updates should be delayed by 100ms or so if possible

jonathangarelick commented 1 month ago

I thought throttle would solve this, but doesn't appear to work...

https://developer.apple.com/documentation/combine/fail/throttle(for:scheduler:latest:)

jonathangarelick commented 1 month ago

the problem was the events were too close together (~20ms). solved, fix coming in shortly

jonathangarelick commented 1 month ago

it's back 😞

jonathangarelick commented 1 month ago

still happening after 400ms delay. the delay seems to correlate how "far" songs are. like if I'm clicking songs on the same playlist, low latency. I click songs on way different playslists, especially one that I have not touched for long, higher latency

jonathangarelick commented 1 month ago

still seeing this 4/28, after 600ms delay