The alarm clock changes output assignments.
If the Radio thinks you have headphones in the jack (which is also the case for speakers of course ) ), it routes the alarm sound through its internal speaker, to people wake up.
When the alarm is finished it puts the audio back to the headphone jack.
As there is no official 'sound alarm through both speaker and headphone jack' mode - it doesn't know that you had that before.
As it looks like you changed some code on your Radio already to get such a mode working, you can have a look into the AlarmSnoozeApplet.
In the end there is a method called 'revertToHeadhphones' or the like which is responsible for this behaviour.
Results 21 to 30 of 40
-
2010-09-26, 23:49 #21Did you know: SqueezePlayer will stream all your music to your Android device. Take your music everywhere!
Remote Control + Streaming to your iPad? Squeezebox + iPad = SqueezePad
Want to see a Weather Forecast on your Radio/Touch/Controller ? => why not try my Weather Forecast Applet
Want to use the Headphones with your Controller ? => why not try my Headphone Switcher Applet
-
2010-10-08, 15:46 #22Member
- Join Date
- Sep 2010
- Posts
- 37
This is exactly what i want too, but i am still new to squeezebox and am unsure how to install the plugin or how to make the additions that abdndamo made above to be able to select both outputs at once. if anyone patient enough can help me out id appreciate it. either post here or pm would be nice. thanks
edit: nevermind, i followed the wiki instructions, closer this time, and managed to get it working. just for those using winscp, make sure you switch to 'scp' on the connection screen, that was my prob!Last edited by varunaX; 2010-10-11 at 21:46.
-
2010-10-14, 17:22 #23Member
- Join Date
- Sep 2010
- Posts
- 37
Im wondering if the author of this plugin, or anyone who can code can help remedy an issue im having with the plugin.
Steps
1. I have the headphone plugged in all the time
2. Before i goto bed, i make sure the option is set to 'Play through Both'
3. Alarm goes off in the morning through both speaker and headphone (good)
4. I say stop alarm
5. I then play any radio station and no sound comes from speaker, just from headphones (bad). (I have to go into the settings and enable the 'Both' option for it to play properly again)
Can anyone help change the app so that in step 5, the music will play through the speaker without me having to re-enable the option? thanks alot
-
2010-10-14, 23:30 #24
Did you find the AlarmSnoozeApplet and the 'revertToHeadphones' (or named similarly)-method ?
Just uncomment everything in there and it will keep the output assignments.Did you know: SqueezePlayer will stream all your music to your Android device. Take your music everywhere!
Remote Control + Streaming to your iPad? Squeezebox + iPad = SqueezePad
Want to see a Weather Forecast on your Radio/Touch/Controller ? => why not try my Weather Forecast Applet
Want to use the Headphones with your Controller ? => why not try my Headphone Switcher Applet
-
2010-10-15, 09:30 #25Member
- Join Date
- Sep 2010
- Posts
- 37
Oops sorry im an idiot and didnt see your earlier post about the exact same issue.
Ok ill try that when i get home. What do you mean by 'uncomment'? sorry im not a coderLast edited by varunaX; 2010-10-15 at 09:36.
-
2010-10-15, 11:03 #26
sorry for my bad english: 'comment out' I meant.
Put
//
in front of some lines and they will be ignored ... don't forget to restart the SB-Server afterwards.
Just checked the applet (usr/share/jive/applets/AlarmSnooze/AlarmSnoozeApplet.lua), around line 408 it reads:
change the one line that is about headphones toCode:function _hideAlarmWindow(self) if self.alarmWindow then self.alarmWindow:hide() self.alarmWindow = nil self:_babyRevertHeadphones() end end
You need to change this after every firmware update.Code:// self:_babyRevertHeadphones()
Did you know: SqueezePlayer will stream all your music to your Android device. Take your music everywhere!
Remote Control + Streaming to your iPad? Squeezebox + iPad = SqueezePad
Want to see a Weather Forecast on your Radio/Touch/Controller ? => why not try my Weather Forecast Applet
Want to use the Headphones with your Controller ? => why not try my Headphone Switcher Applet
-
2010-10-16, 15:44 #27Member
- Join Date
- Sep 2010
- Posts
- 37
you rock blugaslpode, thanks so much
we are making progress
i tried the // before the line and it didnt work, so i was choked, but then scrolling through the code i saw alot of -- before comments, so i added those before the revert line and now it comes out of the speakers after i turn off the alarm (which is better!), BUT not out of the headphones, which i do want
i do notice that during the alarm the sound isnt coming out of the headphones, just speakers, so is it mabye reverting to just the speaker after i turn off the alarm? is there any way i can force it to come out of both the speaker and heaphones after i turn off the alarm?Last edited by varunaX; 2010-10-16 at 15:58.
-
2010-10-16, 16:03 #28
sorry to confuse you about the 'comment'-symbols. I'm switching programming languages too often I guess. You are right - for applets '--' is the right one to use.
You might also take a look into the function 'openAlarmWindow'.
Around line 489 there is the line
You should comment out that one too, as it puts all sound to the speaker (and turns off the headphones) when the alarm starts.Code:self:_babyAlarmThroughSpeakers()
By the way: how did you make the sound come through headphones and speaker in the first place ? In this thread just the idea was described, not how it is done in the end.
Other users might be interested !Did you know: SqueezePlayer will stream all your music to your Android device. Take your music everywhere!
Remote Control + Streaming to your iPad? Squeezebox + iPad = SqueezePad
Want to see a Weather Forecast on your Radio/Touch/Controller ? => why not try my Weather Forecast Applet
Want to use the Headphones with your Controller ? => why not try my Headphone Switcher Applet
-
2010-10-16, 18:04 #29Member
- Join Date
- Sep 2010
- Posts
- 37
you rock bluegaspode, you fixed it. adding that comment now has it behaving as i want it.
i installed that headphones applet on page 1 of this thread. it has the option to have both the speaker and headphones enabled. and now with those comments it appears as if the speaker and headphones will stay enabled all the time, before and after an alarm which is great
-
2011-05-21, 13:45 #30Junior Member
- Join Date
- May 2011
- Posts
- 5
Headphone Jack Issue
I just bought a Duet and like it very much. However, I still cannot get the headphone jack on the controller to work properly. I downloaded and installed Bluegaspode's Headphone Switcher Applet, but all that did was give me the menu sounds through the headphones. No music or radio sound at all. Did I miss something? Anyone have any ideas?

Reply With Quote

