These are the hacked-up scripts I use to control my
jukebox with LIRC. Jukebox plays all the time, using
icecast. When jukebox is started, an alsaplayer is
launched, and paused.
Press a button, and the alsaplayer wakes up and plays
the jukebox, Press another and it pauses again.
The following files are included:
alsaplayerpoker: sends commands to alsaplayer, but will
never start a new instance. I wouldn't have had to
write this if alsaplayer had a usable command-line
server mode. Put in juebox directory, name
'alsaplayerpoker'. You may need alsaplayer's source to
replacement for jukebox.vanilla. Customise to suit your
installation (you'll need to add the URL to your
shoutcast server), and maybe amend a few paths.
daemon that listens to the LIRC server.Customise to
suit your installation (you'll need to add the URL to
your shoutcast server, the host/ort of your lirc
server, amend a few paths, and configure the LIRC
buttons you're using).
Code I've written is licensed under the GNU Public
License, version 2 only.Code from alsaplayer is
licensed under the GNU Public License, version 2 or
later. Code from GJukebox has a peculiar license; it
may now be less strict than the header implies.
Log in to post a comment.