#52 use alsaplayer to play locally and icecast at the same time.

open
nobody
None
5
2005-06-22
2005-06-22
Lewis Jardine
No

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:

./build.sh
./message.c
./message.h
./poker.c

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
compile this.

./jukebox
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.

./lirc_listener.phpsh
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.

Discussion