Home of the Squeezebox™ & Transporter® network music players.
Results 1 to 3 of 3
  1. #1
    Senior Member
    Join Date
    Apr 2005
    Location
    Colorado
    Posts
    10,072

    Would any of these be possible with a plugin?

    • Create a default ReplayGain adjustment level for each player. Editable through the web interface.

    • Apply that ReplayGain level (only) when playing remote streams.

    • Map a remote IR remote button to enable/disable ReplayGain. Both for local content and remote streams using the level defined above. Either saving the player's RG setting (album, track, smart) so that it can be restored later, or else just enabling a particular one.

    • Synchronize RreplayGain in a sync group so that whenever one player has RG enabled/disable, they all follow.


    Loosely related...

    In the web interface settings, if a plugin wants to implement some type of player setting(s), can the plugin add a tab to player settings, or does it have to be done outside of that, on a page accessible only through the plugin's settings?

  2. #2
    Babelfish's Best Boy mherger's Avatar
    Join Date
    Apr 2005
    Location
    Switzerland
    Posts
    18,931

    Would any of these be possible with aplugin?

    > - Create a default ReplayGain adjustment level for each player.
    > Editable through the web interface.
    > - Apply that ReplayGain level (only) when playing remote streams.
    > - Map a remote IR remote button to enable/disable ReplayGain. Both
    > for local content and remote streams using the level defined above.
    > Either saving the player's RG setting (album, track, smart) so that
    > it can be restored later, or else just enabling a particular one.
    > - Synchronize RreplayGain in a sync group so that whenever one player
    > has RG enabled/disable, they all follow.


    It's possible, anything can be done ;-). I only can guess, but I'd think
    it would be possible, yes.

    > In the web interface settings, if a plugin wants to implement some type
    > of player setting(s), can the plugin add a tab to player settings, or
    > does it have to be done outside of that, on a page accessible only
    > through the plugin's settings?


    Yes, plugins can add new pages to the player settings. I'm doing this for
    the MusicInfoSCR plugin.

    --

    Michael

  3. #3
    Senior Member erland's Avatar
    Join Date
    Dec 2005
    Location
    Sweden
    Posts
    10,315
    Quote Originally Posted by mherger View Post
    > - Create a default ReplayGain adjustment level for each player.
    > Editable through the web interface.
    > - Apply that ReplayGain level (only) when playing remote streams.
    > - Map a remote IR remote button to enable/disable ReplayGain. Both
    > for local content and remote streams using the level defined above.
    > Either saving the player's RG setting (album, track, smart) so that
    > it can be restored later, or else just enabling a particular one.
    > - Synchronize RreplayGain in a sync group so that whenever one player
    > has RG enabled/disable, they all follow.


    It's possible, anything can be done ;-). I only can guess, but I'd think
    it would be possible, yes.
    Where would a third party plugin be able to hook into the process ?

    There is an option in Player/ReplayGain.pm in fetchGainMode function which contains this section:
    Code:
            # Allow plugins to override replaygain (i.e. Pandora should always use track gain)
            my $handler = $song->currentTrackHandler();
            if ( $handler->can('trackGain') ) {
                    return $handler->trackGain( $client, $url );
            }
    But I'm guessing this won't work because if I understand correctly we are talking about a generic plugin that handles all remote streams and not one that have a specific track handler.

    Is there somewhere else there would be possible to hook into the replay gain handling ?

    Or are we just taking about dynamically changing settings in run time just before a new track is about to play and hoping that it will be able to do it before the setting is read ?
    Erland Isaksson (My homepage)
    (Developer of many plugins/applets (both free and commercial).
    If you like to encourage future presence on this forum and/or third party plugin/applet development, consider purchasing some plugins)
    You may also want to try my Android apps Squeeze Display and RSS Photo Show
    Interested in the future of music streaming ? ickStream - A world of music at your fingertips.

Posting Permissions

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