Hi there,

this is my second post to the forums, so "Hi" everyone. :)

My SqueezeBox v3 is happily running the IR blaster plugin since
yesterday with a homemade IR transmitter (I actually used a 1k
resistor, call me paranoid). After a few hours of fiddling with the
settings and browsing through the SlimServer source, I got it working
just as I want to. Almost.

One thing that bothered me is that my stereo needs a few seconds to
power up after receiving the IR "power" signal. The Squeezebox, on the
other hand, starts playing immediately (if started with PLAY or by an
alarm). So I get quite a choppy entry into the song about five seconds
after it starts.

I hacked a little workaround for this: after powering up the stereo,
the IRBlaster plugin pauses the Squeezebox, and sets a timer. Upon
expiration of that timer, it resumes playback, so we get a smooth
fade-in of the song. It only does this, if the box is playing at the
moment the plugin gets to run (that is, when we start the box with a
PLAY command or through an alarm).

As I am pretty new to perl and completely new to Slimserver's API,
there must be a few things missing here. For example, there's no way to
set the powerup delay except changing the source. I'm sure you could use
something like getPrefs(), but it never kept my changes in
.slimserver.prefs. Maybe somebody could add that feature (and a
corresponding entry in the HTML pages, too)?

Anyway, here's the patch:

http://www.ennonymous.de/stuff/IRBlaster_poweron_wait.patch

Is there something fundamental I have overlooked? Does anyone actually
have a use for this? :)

Best,
        Enno


-- 
ennonymous
------------------------------------------------------------------------
ennonymous's Profile: http://forums.slimdevices.com/member.php?userid=6825
View this thread: http://forums.slimdevices.com/showthread.php?t=26272

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

Reply via email to