Re: [SlimDevices: Radio] Music before Alarm

2010-01-12 Thread miniwaites

All fixed apparently - thanks Ben

== Auto-comment from SVN commit #8312 to the jive repo by bklaas ==
== https://svn.slimdevices.com/jive?view=revisionrevision=8312 ==

Bug: 14870
Fixed Bug: 15457
Description: first checkin of merged code that includes Marc's code to
defensively fire the fallback when things go bad and many other changes
made by
me
-- include a sending of a WOL packet 10 mins before next configured
alarm
-- alarm window now has an EVENT_WINDOW_POP listener that resets the
self.alarmInProgress value when the window hides. This effectively
ties
resetting of state variables to the popup window while allowing events
to
bubble up the event handler (i.e., return EVENT_UNUSED on callback
actions)
-- for now the sledgehammer method is only called by the
decodePollTimer and
not by the misc notification methods. My hope is that's what we can
eventually
settle on.


-- 
miniwaites

miniwaites's Profile: http://forums.slimdevices.com/member.php?userid=11895
View this thread: http://forums.slimdevices.com/showthread.php?t=73708

___
Radio mailing list
Radio@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/radio


Re: [SlimDevices: Radio] Music before Alarm

2010-01-12 Thread miniwaites

Does anybody know how would I apply this fix?


-- 
miniwaites

miniwaites's Profile: http://forums.slimdevices.com/member.php?userid=11895
View this thread: http://forums.slimdevices.com/showthread.php?t=73708

___
Radio mailing list
Radio@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/radio


Re: [SlimDevices: Radio] Music before Alarm

2010-01-12 Thread bluegaspode

You should wait a day in the hope that the Firmware is confirmed and
available for download.
Then you just need to install the 7.4 -nightly and your radio will
update soon after that.

As more then one class currently is involved in the change, I guess it
doesn't make sense to try yourself get the right sources from SVN.


-- 
bluegaspode

1x SB-Controller+Receiver (Duet), 1xSB-Boom. 1xSB-Radio
Server (7.4.1) running on SheevaPlug (Ubuntu) with attached Western
Digital MyBook Essential.
Secondary 7.4 Server on Debianized Buffalo Linkstation LS-CHL.

bluegaspode's Profile: http://forums.slimdevices.com/member.php?userid=31651
View this thread: http://forums.slimdevices.com/showthread.php?t=73708

___
Radio mailing list
Radio@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/radio


Re: [SlimDevices: Radio] Music before Alarm

2010-01-11 Thread Mnyb

miniwaites;505302 Wrote: 
 However this isn't the problem I'm having in that all I need is for the
 WOL command to be sent slightly before the alarm is due to go off. 
 Which really doesn't sound like it should be much of a problem no?  And
 really should be how it already works - as there's no need to have a
 computer running 24/7 just to drive an alarm clock.  I'll file and
 enhancement request.

On the boom the WOL is sent 10 minutes before the alarm goes off, I use
a boom and actually boot my server with wol every morning (not hibernate
or suspend).
Only disadvantage is that I have to enjoy the backup tone every time
there is  scheduled disk check. My server is not powerful enough to
check my 1TB musik drive with 600GB of files in 10 minutes .


-- 
Mnyb


Main hifi: SB3 (soon to replaced by a Touch :) It is on preorder)
Bedroom/Office: Boom
Kitchen: Receiver (soon to be replaced by my SB3 and the SBRto be
stuffed in a box in the attic )
I use a Controller various ir-remotes and a Eee-PC with squeezeplay to
controll this

Mnyb's Profile: http://forums.slimdevices.com/member.php?userid=4143
View this thread: http://forums.slimdevices.com/showthread.php?t=73708

___
Radio mailing list
Radio@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/radio


Re: [SlimDevices: Radio] Music before Alarm

2010-01-11 Thread miniwaites

I have filed a bug to get the WOL command sent before the alarm - if you
are affected by the problem please vote

https://bugs.slimdevices.com/show_bug.cgi?id=15457

ta


-- 
miniwaites

miniwaites's Profile: http://forums.slimdevices.com/member.php?userid=11895
View this thread: http://forums.slimdevices.com/showthread.php?t=73708

___
Radio mailing list
Radio@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/radio


Re: [SlimDevices: Radio] Music before Alarm

2010-01-11 Thread Mnyb

miniwaites;505312 Wrote: 
 I have filed a bug to get the WOL command sent before the alarm - if you
 are affected by the problem please vote
 
 https://bugs.slimdevices.com/show_bug.cgi?id=15457
 
 ta

Good move .

But I'm thinking here, I'm not using windows but have it not been some
old problems with XP that it falls back into hibernation after 2 minutes
?
If nothing happens after it's woken up ? There are lot of settings re
hibernation, sleep and whatnot in computers WOL can be problematic to
get to work as one wants to.


-- 
Mnyb


Main hifi: SB3 (soon to replaced by a Touch :) It is on preorder)
Bedroom/Office: Boom
Kitchen: Receiver (soon to be replaced by my SB3 and the SBRto be
stuffed in a box in the attic )
I use a Controller various ir-remotes and a Eee-PC with squeezeplay to
controll this

Mnyb's Profile: http://forums.slimdevices.com/member.php?userid=4143
View this thread: http://forums.slimdevices.com/showthread.php?t=73708

___
Radio mailing list
Radio@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/radio


Re: [SlimDevices: Radio] Music before Alarm

2010-01-11 Thread miniwaites

I'm no expert but the WOL does work - it's just that this fall back
music happens before the WOL has had a chance to work.  Even if there is
a problem as you suggest then wouldn't it be sensible to have some kind
of basic invisible activity between server and the radio to ensure that
the server doesn't fall back to sleep?


-- 
miniwaites

miniwaites's Profile: http://forums.slimdevices.com/member.php?userid=11895
View this thread: http://forums.slimdevices.com/showthread.php?t=73708

___
Radio mailing list
Radio@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/radio


Re: [SlimDevices: Radio] Music before Alarm

2010-01-11 Thread Mnyb

miniwaites;505350 Wrote: 
 I'm no expert but the WOL does work - it's just that this fall back
 music happens before the WOL has had a chance to work.  Even if there is
 a problem as you suggest then wouldn't it be sensible to have some kind
 of basic invisible activity between server and the radio to ensure that
 the server doesn't fall back to sleep?

Yes, and wol 10 min before alarm ensure that even the slowest servers
will boot on time. I'll vote on that bug.


-- 
Mnyb


Main hifi: SB3 (soon to replaced by a Touch :) It is on preorder)
Bedroom/Office: Boom
Kitchen: Receiver (soon to be replaced by my SB3 and the SBRto be
stuffed in a box in the attic )
I use a Controller various ir-remotes and a Eee-PC with squeezeplay to
controll this

Mnyb's Profile: http://forums.slimdevices.com/member.php?userid=4143
View this thread: http://forums.slimdevices.com/showthread.php?t=73708

___
Radio mailing list
Radio@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/radio


Re: [SlimDevices: Radio] Music before Alarm

2010-01-09 Thread erland

bluegaspode;504490 Wrote: 
 Maybe this should be checked again, when work on the alarm is done.
 1 -2 seconds shouldn't make the fallback alarm go off - it should wait
 at least 9 seconds before the fallback code triggerts
 
I've suspected it starts to play the current playlist with the last
used volume when the device is turned on before the alarm handling kicks
in and changes the playlist and lowers the volume. However, I haven't
investigated it in detail. It only happens sometimes for me, sometimes
the volume ramp-up works correctly.


-- 
erland

Erland Isaksson
'My homepage' (http://erland.isaksson.info) (Install my plugins through
Extension Downloader)
(Developer of 'TrackStat, SQLPlayList, DynamicPlayList, Custom Browse,
Custom Scan,  Custom Skip, Multi Library, Title Switcher and Database
Query plugins'
(http://wiki.erland.isaksson.info/index.php/Category:SlimServer))

erland's Profile: http://forums.slimdevices.com/member.php?userid=3124
View this thread: http://forums.slimdevices.com/showthread.php?t=73708

___
Radio mailing list
Radio@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/radio


Re: [SlimDevices: Radio] Music before Alarm

2010-01-09 Thread Peter Stone
Many thanks to Bluegaspode for his comments:
You hear the 'fallback' alarm which means your server is not ready yet
to send the alarm-signal and play the proper stream.
This fallback alarm currently doesn't fade in.

The fallback alarm, very loud, very repetitive, is nothing I 
recognise - I assume it is an item from the inbuilt sounds library.
Might I at least change it for another more gentle sound?

Since this sound is not on any playlist, and is played at max volume, 
I think the problem noted by Miniwaites and myself is different from 
that described by Erland, who commented:
I've suspected it starts to play the current playlist with the last
used volume when the device is turned on before the alarm handling 
kicks in and changes the playlist and lowers the volume.



___
Radio mailing list
Radio@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/radio


Re: [SlimDevices: Radio] Music before Alarm

2010-01-09 Thread bluegaspode

erland;504507 Wrote: 
 I've suspected it starts to play the current playlist with the last used
 volume when the device is turned on before the alarm handling kicks in
 and changes the playlist and lowers the volume. 

Is this a setting ?
When I play a stream and turn the radio off the stream is stopped.
If I turn the radio on, the stream is still stopped.


-- 
bluegaspode

1x SB-Controller+Receiver (Duet), 1xSB-Boom. 1xSB-Radio
Server (7.4.1) running on SheevaPlug (Ubuntu) with attached Western
Digital MyBook Essential.
Secondary 7.4 Server on Debianized Buffalo Linkstation LS-CHL.

bluegaspode's Profile: http://forums.slimdevices.com/member.php?userid=31651
View this thread: http://forums.slimdevices.com/showthread.php?t=73708

___
Radio mailing list
Radio@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/radio


Re: [SlimDevices: Radio] Music before Alarm

2010-01-09 Thread Marc

I think Erland's and Stefan's comments are both probably important
(Peter's as well, in pointing out to distinct issues in terms of the
fallback alarm versus some earlier stream playing for a bit).

I'd suggest doing a small bit of testing with the following in mind: 
You're playing stream 1 at some point in time and then think you've
stopped it.  It could be that when you think you've 'stopped' it that
you really haven't, since hitting the pause button actually 'pauses' the
stream.  If the stream is then sitting there paused for hours prior to
the alarm going off then there will be no surprise if you hear it again
briefly when the 'server' alarm goes off (and maybe even if a fallback
alarm fires, since it could be that encoded audio from the earlier
stream has already made it to the Radio cache before you paused it OR
that decoded audio - PCM samples - are themselves still waiting in the
Radio cache from earlier).  The reason you may hear the earlier stream
briefly is due to how the notification system works.  If a
playerModeChange notification is delivered to some listening applet (or
perhaps even just SqueezeOS directly determines the transition has
occurred) which then decides that means to turn the local audio playout
back on then voila...  you are left with the previously played stream
audio which was previously in paused state.

playerModeChange notifications (along with several other similar type
notifications) DO occur during the alarm process...  

So, see if a previously stopped (not paused) stream, as Stefan
mentioned, manifests the issue when a later alarm is fired then retest
with the played stream being paused (not stopped) prior to the later
alarm firing...  I would not be at all surprised if you hear just the
alarm audio after the prior stream was stopped, but the brief earlier
stream first if it was paused...

Of course, if the earlier stream continues to be briefly heard prior to
the requested alarm audio even after the earlier stream was explicitly
stopped (not paused) then the problem is likely that either the
cache/prefetch audio buffer at the server or the Radio is not being
properly flushed after a stop operation.   Either way, any existing
audio (whether earlier paused or stopped) should, in my view, be flushed
out of the playout pipeline when an alarm fires...   Not so easy to do
in the current context of how alarms work though...

Marc


-- 
Marc

Marc's Profile: http://forums.slimdevices.com/member.php?userid=34776
View this thread: http://forums.slimdevices.com/showthread.php?t=73708

___
Radio mailing list
Radio@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/radio


Re: [SlimDevices: Radio] Music before Alarm

2010-01-09 Thread erland

bluegaspode;504561 Wrote: 
 Is this a setting ?
 When I play a stream and turn the radio off the stream is stopped.
 If I turn the radio on, the stream is still stopped.
 
There is the player settings in the web ui called Power On Resume,
but I have it set to Pause at power off / Remain paused at power on so
I don't think this is it. 

I'll do some experimentation to see if I'm able to reproduce it.
I know I've also sometimes had clock synchronization problems on the
server (running in a virtual machine), so that might also cause
problems.

It should also be said that I'm only using locally stored music, no
internet radio. My server is running 24/7.


-- 
erland

Erland Isaksson
'My homepage' (http://erland.isaksson.info) (Install my plugins through
Extension Downloader)
(Developer of 'TrackStat, SQLPlayList, DynamicPlayList, Custom Browse,
Custom Scan,  Custom Skip, Multi Library, Title Switcher and Database
Query plugins'
(http://wiki.erland.isaksson.info/index.php/Category:SlimServer))

erland's Profile: http://forums.slimdevices.com/member.php?userid=3124
View this thread: http://forums.slimdevices.com/showthread.php?t=73708

___
Radio mailing list
Radio@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/radio


Re: [SlimDevices: Radio] Music before Alarm

2010-01-09 Thread erland

Marc;504577 Wrote: 
 I think Erland's and Stefan's comments are both probably important
 (Peter's as well, in pointing out to distinct issues in terms of the
 fallback alarm versus some earlier stream playing for a bit).
 
I did some more testing regarding this and I think my problem is the
volume ramp-up and not what's actually played. I've probably just been
sleepy when a alarm has fired earlier thinking that there was some audio
left in some buffer.

Anyway, this is what happens:
1. I have the alarms configured to ramp up the volume with the Fade
Alarms In setting.
2. I've paused the player, not stopped it.
3. When the alarm is fired it correctly selects the chosen playlist
4. It starts to play the music with high volume, I think it's the
volume according to the alarm volume setting
5. After a half second it changes the volume to just above 0
6. It correctly ramps up the volume slowly until it reaches the alarm
volume setting.

The problem is step 4 which causes me to wake up immediately instead of
through slowly ramped up music. It feels like step 4 and 5 should happen
in the opposite order so the volume is lowered before the stream
actually starts to play.

If the player is stopped (not just paused) before the alarm sequence it
works correctly.
Also the problem is not what's in the buffer because it plays the
correct track at step 4, it's just that the volume is too high at that
moment.


-- 
erland

Erland Isaksson
'My homepage' (http://erland.isaksson.info) (Install my plugins through
Extension Downloader)
(Developer of 'TrackStat, SQLPlayList, DynamicPlayList, Custom Browse,
Custom Scan,  Custom Skip, Multi Library, Title Switcher and Database
Query plugins'
(http://wiki.erland.isaksson.info/index.php/Category:SlimServer))

erland's Profile: http://forums.slimdevices.com/member.php?userid=3124
View this thread: http://forums.slimdevices.com/showthread.php?t=73708

___
Radio mailing list
Radio@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/radio


Re: [SlimDevices: Radio] Music before Alarm

2010-01-09 Thread Marc

erland;504635 Wrote: 
 I did some more testing regarding this and I think my problem is the
 volume ramp-up and not what's actually played. I've probably just been
 sleepy when a alarm has fired earlier thinking that there was some audio
 left in some buffer.
 
 Anyway, this is what happens:
 1. I have the alarms configured to ramp up the volume with the Fade
 Alarms In setting.
 2. I've paused the player, not stopped it.
 3. When the alarm is fired it correctly selects the chosen playlist
 4. It starts to play the music with high volume, I think it's the
 volume according to the alarm volume setting
 5. After a half second it changes the volume to just above 0
 6. It correctly ramps up the volume slowly until it reaches the alarm
 volume setting.
 
 The problem is step 4 which causes me to wake up immediately instead of
 through slowly ramped up music. It feels like step 4 and 5 should happen
 in the opposite order so the volume is lowered before the stream
 actually starts to play.
 
 If the player is stopped (not just paused) before the alarm sequence it
 works correctly.
 Also the problem is not what's in the buffer because it plays the
 correct track at step 4, it's just that the volume is too high at that
 moment.

Makes sense.  I think if you watch the log you will see in this case a
playerModeChange or playerLoaded or playerCurrent or similar
notification coming from SqueezeOS that is causing the audio subsystem
to be prematurely transitioned to actually play out audio prior to when
the volume is adjusted just above 0.  Then again, you'll only see the
notification occur if an applet or SqueezeOS is logging it.  I know the
new AlarmSnooze applet spits out these events, but I'm not sure they are
otherwise logged...


-- 
Marc

Marc's Profile: http://forums.slimdevices.com/member.php?userid=34776
View this thread: http://forums.slimdevices.com/showthread.php?t=73708

___
Radio mailing list
Radio@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/radio


Re: [SlimDevices: Radio] Music before Alarm

2010-01-08 Thread eap

miniwaites;504176 Wrote: 
 Hello All,
 
 I wondered if anyone else has experienced this - my alarm is set to go
 off at 7.40, but at that time it starts playing some music (which I
 cannot identify) at a volume louder then either the Radio or the alarm
 is set at.  I turn this off and shortly after the actual alarm playlist
 will start.  The Radio is connected wirelessly to a computer which
 sleeps during the night.  There is another identical alarm set for 20
 minutes later (which I use as snooze) which works perfectly.  I'm on
 7.4.2.  Could it be that it plays this music as it can't access the
 correct playlist while the computer wakes up (this only takes a second
 or 2)?  Even if that is the case why is it so loud?  And where has that
 music comes from?  I'm getting into trouble with the missus for the
 suddenly very loud awakenings!
 
 thanks

for the loudness issue, select fade in alarm on squeezebox server
alarm settings (its not a choice on the radio itself).   Can't help you
as to why you get 2 alarm sounds though.

Also, different internet stations play at different levels (at the same
volume setting on the radio) -- not to mention your own local music
files will play at different levels.


-- 
eap

eap's Profile: http://forums.slimdevices.com/member.php?userid=32788
View this thread: http://forums.slimdevices.com/showthread.php?t=73708

___
Radio mailing list
Radio@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/radio


Re: [SlimDevices: Radio] Music before Alarm

2010-01-08 Thread miniwaites

Thanks for the reply.

Fade in is set and it's not playing an internet radio station or (as
far as I'm aware) my own music.  For clarification although I admit it
must be related to the alarm – I don’t think it’s anything I have set in
the alarm.  I have deleted it and moved the second identical alarm to be
the 7.40 then recreated the later alarm.  And again the first alarm has
this same music before it - the second alarm (with exactly the same
settings including the playlist) is fine.


-- 
miniwaites

miniwaites's Profile: http://forums.slimdevices.com/member.php?userid=11895
View this thread: http://forums.slimdevices.com/showthread.php?t=73708

___
Radio mailing list
Radio@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/radio


Re: [SlimDevices: Radio] Music before Alarm

2010-01-08 Thread Peter Stone

Miniwaites wrote
I wondered if anyone else has experienced this - my alarm is set to go
off at 7.40, but at that time it starts playing some music (which I
cannot identify) at a volume louder then either the Radio or the alarm
is set at.  I turn this off and shortly after the actual alarm playlist
will start.

I have exactly the same problem (with possibly the same cause, PC 
slow to wake up). At the time the Alarm is set for, it turns on at 
FULL VOLUME playing a repeating small-band riff. After 5-10 secs that 
cuts out, then slowly out of the silence (as configured) my chosen 
radio station comes in up to the preset volume level.
It's a brutal way to wake me up!

The Radio is connected wirelessly to a computer which
sleeps during the night.  There is another identical alarm set for 20
minutes later (which I use as snooze) which works perfectly.  I'm on
7.4.2.  Could it be that it plays this music as it can't access the
correct playlist while the computer wakes up (this only takes a second
or 2)?  Even if that is the case why is it so loud?  And where has that
music comes from?  I'm getting into trouble with the missus for the
suddenly very loud awakenings!

___
Radio mailing list
Radio@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/radio


Re: [SlimDevices: Radio] Music before Alarm

2010-01-08 Thread miniwaites

I'm sorry about the brutal wakings - but happy to hear that someone else
has the same problem!

I assume that it can easily be fixed then by making the radio send the
WOL command a bit further before the alarm?


-- 
miniwaites

miniwaites's Profile: http://forums.slimdevices.com/member.php?userid=11895
View this thread: http://forums.slimdevices.com/showthread.php?t=73708

___
Radio mailing list
Radio@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/radio


Re: [SlimDevices: Radio] Music before Alarm

2010-01-08 Thread bluegaspode

Your are seeing http://bugs.slimdevices.com/show_bug.cgi?id=14870#c23
scenario #1 (the first half).

You hear the 'fallback' alarm which means your server is not ready yet
to send the alarm-signal and play the proper stream.

This fallback alarm currently doesn't fade in (and I think this will
have low priority given all the other current problems).

Note that I find it very dangerous to make the server sleep.
If your server doesn't wake up at all only your first alarm will sound,
the second won't go off at all.

Solving it won't be easy, as in the SqueezeboxWorld the server
remembers and fires all alarm while the devices just remember the first
alarm for fallback.


-- 
bluegaspode

1x SB-Controller+Receiver (Duet), 1xSB-Boom. 1xSB-Radio
Server (7.4.1) running on SheevaPlug (Ubuntu) with attached Western
Digital MyBook Essential.
Secondary 7.4 Server on Debianized Buffalo Linkstation LS-CHL.

bluegaspode's Profile: http://forums.slimdevices.com/member.php?userid=31651
View this thread: http://forums.slimdevices.com/showthread.php?t=73708

___
Radio mailing list
Radio@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/radio


Re: [SlimDevices: Radio] Music before Alarm

2010-01-08 Thread eap

bluegaspode;504314 Wrote: 
 Your are seeing [url]
 
 Note that I find it very dangerous to make the server sleep.
 If your server doesn't wake up at all only your first alarm will sound,
 the second won't go off at all.
 
 


Exactly.  I have only my monitor screen sleep.  Not my computer.  Its
on 24/7.  I suggest all others do the same -- it avoids most problems.


-- 
eap

eap's Profile: http://forums.slimdevices.com/member.php?userid=32788
View this thread: http://forums.slimdevices.com/showthread.php?t=73708

___
Radio mailing list
Radio@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/radio


Re: [SlimDevices: Radio] Music before Alarm

2010-01-08 Thread erland

I've seen the same problem on my Radio and my SBS is powered on 24/7.
Takes a second or two for the real alarm based on Dynamic Playlist
plugin playlist to be activated and then the volume is lowered and the
correct music played.


-- 
erland

Erland Isaksson
'My homepage' (http://erland.isaksson.info) (Install my plugins through
Extension Downloader)
(Developer of 'TrackStat, SQLPlayList, DynamicPlayList, Custom Browse,
Custom Scan,  Custom Skip, Multi Library, Title Switcher and Database
Query plugins'
(http://wiki.erland.isaksson.info/index.php/Category:SlimServer))

erland's Profile: http://forums.slimdevices.com/member.php?userid=3124
View this thread: http://forums.slimdevices.com/showthread.php?t=73708

___
Radio mailing list
Radio@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/radio