-
Notifications
You must be signed in to change notification settings - Fork 1
/
README
26 lines (22 loc) · 1.06 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
### racket-libmpdclient ###
WIP bindings for libmpdclient.
## Installation ##
raco pkg install --auto --name libmpdclient
## Usage ##
First require the module:
(require libmpdclient)
To connect to MPD with the default settings:
(define conn (mpd_connection_new "localhost" 6600 1000))
Examples of basic commands:
(mpd_run_consume conn #t) -- Enable consume mode
(mpd_run_crossfade conn 2) -- Enable crossfade mode, set crossfade to 2 seconds
(mpd_run_next conn) -- play the next song
(mpd_run_pause conn #t) -- pauses music
(mpd_run_pause conn #f) -- resumes music
(mpd_run_previous conn) -- play the previous song
(mpd_run_random conn #t) -- Enable random mode
(mpd_run_repeat conn #t) -- Enable repeat mode
(mpd_run_seek_current conn 30.0 #f) -- skips to the 30th second of the song
(mpd_run_seek_current conn -30.0 #t) -- skips 30 seconds backwards in the song
(mpd_run_single conn #t) -- Enable single mode
(mpd_run_stop conn) -- stops music