Home of the Squeezebox™ & Transporter® network music players.
Page 3 of 4 FirstFirst 1234 LastLast
Results 21 to 30 of 40
  1. #21
    Senior Member bluegaspode's Avatar
    Join Date
    Jul 2009
    Location
    Berlin, Germany
    Posts
    3,065
    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.
    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

  2. #22
    Quote Originally Posted by abdndamo View Post
    Hi bluegaspode,

    I have taken your app and added the functionality I require. As well as being able to select the headphone or speaker via your app, I can now select both.
    Cheers
    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.

  3. #23
    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

  4. #24
    Senior Member bluegaspode's Avatar
    Join Date
    Jul 2009
    Location
    Berlin, Germany
    Posts
    3,065
    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

  5. #25
    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 coder
    Last edited by varunaX; 2010-10-15 at 09:36.

  6. #26
    Senior Member bluegaspode's Avatar
    Join Date
    Jul 2009
    Location
    Berlin, Germany
    Posts
    3,065
    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:
    Code:
    function _hideAlarmWindow(self)                                                 
            if self.alarmWindow then                                                
                    self.alarmWindow:hide()                                         
                    self.alarmWindow = nil                                          
                    self:_babyRevertHeadphones()                                    
            end                                                                     
    end
    change the one line that is about headphones to

    Code:
    //                self:_babyRevertHeadphones()
    You need to change this after every firmware update.
    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

  7. #27
    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.

  8. #28
    Senior Member bluegaspode's Avatar
    Join Date
    Jul 2009
    Location
    Berlin, Germany
    Posts
    3,065
    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
    Code:
    self:_babyAlarmThroughSpeakers()
    You should comment out that one too, as it puts all sound to the speaker (and turns off the headphones) when the alarm starts.


    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

  9. #29
    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

  10. #30
    Junior 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?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •