{"id":3541,"date":"2014-03-27T07:56:33","date_gmt":"2014-03-27T07:56:33","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/03\/27\/problem-about-libspotify-collection-of-common-programming-errors\/"},"modified":"2014-03-27T07:56:33","modified_gmt":"2014-03-27T07:56:33","slug":"problem-about-libspotify-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2014\/03\/27\/problem-about-libspotify-collection-of-common-programming-errors\/","title":{"rendered":"problem about libspotify-Collection of common programming errors"},"content":{"rendered":"<ul>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/628016e4953c590b3777409db64bd7c4?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nquetzalcoatl<br \/>\nspotify libspotify<br \/>\nCurrently we&#8217;re implementing Libspotify in a win 7 64 bit system. Everything seems to work fine except the playback. We get data from the callback , but even using audicity on the saved audio, is filled with abnormalities. So to research further we took the win32 sample (spshell ) and modified it to save the music data to file. Same problem, definitely music with these ticks in it. I&#8217;m sure there&#8217;s something simple I&#8217;m missing here, but I&#8217;m at a loss as to what could be the problem. Any help wo<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/783ae4974d95f4c8e26ceb5460b6e100?s=32&amp;d=identicon&amp;r=PG&amp;f=1\" \/><br \/>\nTiagoOliveira<br \/>\nc spotify libspotify<br \/>\nI was testing out libspotify library (version 12.1.51 x86 for linux) and the application keeps crashing when I call sp_session_create() with a segmentation fault. I don&#8217;t have application key, nor a Premium Spotify account (yet), but that shouldn&#8217;t be the reason for the crash, since if I remember correctly, there is an error code for invalid application key.My code is as follows:static uint_8_t g_appkey[] = {1, 2, 3}; static const char *username = &#8220;MyUsername&#8221;; static const char *password = &#8220;MyP<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/df1e0e00ae20c50c77a31dac7ac1228f?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nIvan Kelly<br \/>\nc segmentation-fault spotify libspotify<br \/>\nI&#8217;m getting a segmentation fault using if I try to call sp_session_logout after playing a song. I can&#8217;t really say much about the segfault, as I don&#8217;t have the symbols, With the following code the segfault occurs every time after logout is called https:\/\/gist.github.com\/ivankelly\/5564318#0 0x00007ffff7ac5746 in ?? () from \/home\/ivan\/Apps\/lib\/libspotify.so.12 #1 0x00007ffff7a38289 in ?? () from \/home\/ivan\/Apps\/lib\/libspotify.so.12 #2 0x00007ffff7a38535 in ?? () from \/home\/ivan\/Apps\/lib\/libspot<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/e577729e809ca171e213fd99f00af1b2?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nFrontierPsychiatrist<br \/>\nnode.js libspotify<br \/>\nI am trying to write a module for nodeJS which wraps libspotify. The goal is to write a webapp that allows the remote control of a device playing music from spotify.I have decided to go along the spshell example to ensure thread safety and write a &#8220;Spotify Service&#8221; in plain C that starts a seperate thread which calls all the API functions.The nodeJS module then just calls a few provided functions to interact with spotify. The code for the service can be found here: http:\/\/pastebin.com\/KB6uwSC8 T<\/li>\n<\/ul>\n<p>Web site is in building<\/p>\n","protected":false},"excerpt":{"rendered":"<p>quetzalcoatl spotify libspotify Currently we&#8217;re implementing Libspotify in a win 7 64 bit system. Everything seems to work fine except the playback. We get data from the callback , but even using audicity on the saved audio, is filled with abnormalities. So to research further we took the win32 sample (spshell ) and modified it [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-3541","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/3541","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=3541"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/3541\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=3541"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=3541"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=3541"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}