jmhunter wrote: 
> Hi,
> 
> I am working on linking my piCorePlayer to the amplifier driving its
> speakers - such that when music playback starts, the amplifier turns on;
> and when music playback finishes, the amplifier turns back off again.
> 
> I have the amplifier side sorted (I'm actually using a Crestron unit
> controlled via a simple TCP/IP interface, but it could easily be a
> simple relay on the GPIO or similar, to control power to a non-ethernet
> amp).
> 
> However I am not quite sure where I could possibly hook into
> piCorePlayer.
> 
> I have had various thoughts, including
> - can piCorePlayer call a shell script when playback starts and stops?
> - is there an ALSA command I can run (every second?!) that tells me if
> audio is playing or not?
> - Maybe something in 'ps' or via 'top' (ugly hack)?
> - Possibly even something at the squeezeboxserver end?
> 
> The actual interface to the amp is being created by me, and can be as
> simple as
> - opening a telnet connection to a particular port to turn the amp on,
> and closing it to turn it off
> - a long-lived connection and sending "ON" or "OFF" etc.
> - the Crestron amp could even telnet to the Pi or squeezeboxserver to
> read the status of something.
> 
> I just don't know where to start at the piCorePlayer end..
> 
> Has anyone done something similar to this before?
> 
> Thanks
> 
> Jonathan

Post 3917 has such a script, it originated from Greg, I mashed it a
little to pulse the GPIO output pin whilst playing as I already had a
hardware auto power on / off thingy that detected a ballanced audio
line.
Tony


------------------------------------------------------------------------
Bemused's Profile: http://forums.slimdevices.com/member.php?userid=65092
View this thread: http://forums.slimdevices.com/showthread.php?t=97803

_______________________________________________
unix mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/unix

Reply via email to