spotify-backstage is a C++ library for playing music from Spotify. It's based on libspotify.
spotify-backstage implements two new features that the official Spotify client doesn't have:
-
Equalizer. spotify-backstage includes a simple three channel equalizer (in class
Equalizer
). -
Selecting Output Device. spotify-backstage supports changing the audio output device.
The users of spotify-backstage should include the header SpotifyBackstage.hpp and instantiate the SpotifyBackstage
class. This opens up the Spotify connection and initializes the audio device for playback.
spotify-backstage has some dependencies to external libraries:
-
libspotify. The integration to Spotify is implemented with libspotify. To use libspotify (and therefore, to use spotify-backstage), you need Spotify Premium account. You also need a Spotify application key. To build spotify-backstage, input your application key to
Appkey.hpp
. -
PortAudio. spotify-backstage audio playback is implemented with PortAudio.
-
PolyM. spotify-backstage thread communication is implemented with PolyM.
-
boost. spotify-backstage passes audio data to sound driver through
boost::lockfree::spsc_queue
. boost/lockfree/spsc_queue.hpp is the only header spotify-backstage includes from boost.