jonathangarelick / SoundSeer

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

flicker when manually selecting a new song #26

Open jonathangarelick opened 7 months ago

jonathangarelick commented 7 months 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 7 months ago

ooh this looks like a tough one 😆

jonathangarelick commented 7 months ago

api appears to be unreliable. now iffy replication

jonathangarelick commented 7 months 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 7 months 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 7 months ago

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

jonathangarelick commented 7 months ago

it's back 😞

jonathangarelick commented 7 months 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 7 months ago

still seeing this 4/28, after 600ms delay