Beta Pandorify Shuffle (basic spotify client)


KickAss

Very Active Member
Joined
Mar 9, 2011
Messages
604
Location
Germany
ello everyone,

im working on a native spotify client based on libspotify.
basically its already working, but i get stuttering sound output. and right now i dunno what to do about it. it's neither a cpu nor a ram nor a network problem. my best guess: it may be an alsa problem.

did anyone ever work with libspotify on the pandora? whats your experience so far?
 
yeah, i did read that, thanks.

i did not experience any significant increase in cpu or sd usage.
i did a testdrive with cache_location='' in config.py in order to avoid on disk caching. but that didnt change anything.


Gesendet von iPhone mit Tapatalk
 
i just checked spoppy, a tiny cli spotify client. it suffers the same fate.

so my code aint the culprit. its either libspotify, pyspotify or alsa.
right now i have no idea how to fix that


Gesendet von iPhone mit Tapatalk
 
Did you trying installing pyspotify with a couple different versions of python? There is firmware python 2, codeblocks python 2, and codeblocks python 3.
 
im working with python 2.7 on slackware 14.1.

python 3 seems to cause memory issues with pyspotify.

libspotify's debug logging throws a lot of weird stuff at me. im working through that right now.
they need to release a new api asap.


Gesendet von iPhone mit Tapatalk
 
mkay i just figured im running my slack on a class 4 sd card.

lol

caching and sd speed are probably the roots of all evil here.
just a perfect excuse to buy a couple of new sd cards :)
 
do not expect a full blown client at first. that would be an awful lot of work.

the idea is as follows:
ill provide a tiny gtk based app with basic playback capabilities: play/pause, next track, previous track. it will load a spotify playlist and play or shuffle through all the tracks in that list. hence the name: pandorify shuffle.

i may add features later.
 
okay,
so i migrated my slack on a sandisk extreme class 10 sd card.
now here's a fun fact:
that didnt change anything.

im close to tears ;(
 
Do you have Bluetooth and WiFi enabled? Enabling them together usually results in stuttering performance for both.
 
libspotify will always return raw pcm 44,1 khz dual channel 16 bit samples. no matter which quality setting.

its some sort of audio buffer problem. i dunno.
 
i took a walk through dependencies hell today in order to sort things out.
i tried to get mopidy going and compiled ncmpcpp as the client.

mopidy is a mpd server with spotify support (as its also based on libspotify). unfortunately it complains about some missing gstreamer/gobject modules...

anyways, i doubt it would run any better than the most basic libspotify stuff (which i am using).

i will keep debugging libspotify. maybe theres something i can fix.
 
Back
Top