Skip to content

Phate6660/racket-libmpdclient

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 

Repository files navigation

### 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

About

Racket bindings for libmpdclient

Topics

Resources

License

Stars

Watchers

Forks

Languages