Revision: 18863
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at October 10, 2009 13:39 by vas3k
Initial Code
#include <iostream> #include <libmpd-1.0/libmpd/libmpd.h> using namespace std; int main(int argc, char *argv[]) { MpdObj *obj = NULL; // Establishing connection obj = mpd_new("192.168.0.101", 6600, NULL); mpd_connect(obj); cout << "Playing " << mpd_get_hostname(obj) << endl;; //mpd_player_next(obj); int id = mpd_player_get_current_song_id(obj); mpd_Song *song = mpd_playlist_get_song (obj, id); cout << song->artist << " - " << song->title << endl; mpd_disconnect(obj); mpd_free(obj); return 0; }
Initial URL
Initial Description
Initial Title
libmpd in debian
Initial Tags
c
Initial Language
C++