Home of the Squeezebox™ & Transporter® network music players.
Page 1 of 2 12 LastLast
Results 1 to 10 of 14
  1. #1

    Is / can Slimserver use iNotify?

    Just wondering .... why do we appear to be doing intensive scans to update our music libraries, when there is a much simply why ... ie through file system notifications?

    Several linux distributions are supporting this out of the box now.

    Anyone?
    Steve

  2. #2
    Senior Member Michaelwagner's Avatar
    Join Date
    Apr 2005
    Location
    Oakville, Ontario, Canada
    Posts
    2,024
    Search the forum, it's been discussed at length before. It's not as easy as it sounds in a multi-file system, multi-operating system world.

  3. #3
    Perl Commando Dan Sully's Avatar
    Join Date
    Apr 2005
    Location
    Daly City, CA
    Posts
    2,865
    Plans are to do this for 7.0

    It of course won't work for networked filesystems.

    http://svn.slimdevices.com/trunk/ser.../ChangeNotify/

  4. #4
    Senior Member Michaelwagner's Avatar
    Join Date
    Apr 2005
    Location
    Oakville, Ontario, Canada
    Posts
    2,024
    Quote Originally Posted by Dan Sully View Post
    It of course won't work for networked filesystems.
    I wouldn't be quite so quick to dismiss the idea.

    There is a protocol for sending network messages about file updates and deletes over networks. It's been a while since I looked at how it's implemented. And of course, whether it's implemented in all networking file systems or not.

    But, for instance, if you open an explorer window on a file system and then, from another window or another computer, delete files in that file system, there is a short delay but the explorer window finds out, refreshes itself and the files go away.

    I don't know if it's only on delete or other notify-type things too.

  5. #5
    Senior Member Michaelwagner's Avatar
    Join Date
    Apr 2005
    Location
    Oakville, Ontario, Canada
    Posts
    2,024
    Insomnia is a terrible thing.

    Dan: For SMB file systems, it's called a Change Notify event.

    There are printer events and file system events.

    File system events are first supported in NT, so anything W2K+ should work fine (and that's all Slim officially supports in the windows arena these days).

    There are some bugs in this area, and I couldn't figure out if Samba supports these properly. The Samba docs say it's hard, because there's no exact equivalent in *nix, but then they seem to go on and say they figured it out anyways. Samba isn't one of those things I know a lot about.

    HTH.

  6. #6
    Senior Member
    Join Date
    Feb 2007
    Posts
    118
    Quote Originally Posted by Dan Sully View Post
    Any news on this?

  7. #7
    NOT a Slim Devices Employee kdf's Avatar
    Join Date
    Apr 2005
    Posts
    9,493

    Is / can Slimserver use iNotify?

    On 25-Nov-07, at 9:43 AM, mavit wrote:

    >
    > Dan Sully;135132 Wrote:
    >> Plans are to do this for 7.0
    >>
    >> http://svn.slimdevices.com/trunk/ser.../ChangeNotify/

    >
    > Any news on this?
    >

    none, sorry.
    -kdf

  8. #8
    Senior Member hickinbottoms's Avatar
    Join Date
    Apr 2005
    Location
    Wokingham, UK
    Posts
    544
    Quote Originally Posted by mavit View Post
    Any news on this?
    I'm going to take a look at this, I think. I suspect it can be added via a plugin.

    Can't say when I might have something, though, as I'm pretty busy at the moment.

    Stuart
    "Never put off until tomorrow what you can put off until the day after - with Lazy Searching!"

  9. #9
    Senior Member Michaelwagner's Avatar
    Join Date
    Apr 2005
    Location
    Oakville, Ontario, Canada
    Posts
    2,024
    I wouldn't be quick to assume the problem can be fixed in a plug-in. It goes quite deep.

    IIRC, sychronized players are only loosely synchronized. They each fill their own buffers, and play at their own speed (set by the clock crystal or some derivitive thereof). Sychronization code in the server stops them all (or at least lets them run dry) and only restarts them when the slowest one is finished. So the pause between tracks is needed for synchronized play. Any attempt at removing it (cross-fade, gapless play) breaks synchronized play.

    The solution, back in R6, was expected to come from a network time signal that all players played to. But I don't think that got into 7. Without it, (or the pause between songs) synchronized players would unsynch within a few songs and sound awful.

    That is my recollection, although it's a year old and it is 6:30AM in my time zone. So it could be wrong. And I've never looked at the 7 code to see if the issues are still the same.

  10. #10
    Senior Member hickinbottoms's Avatar
    Join Date
    Apr 2005
    Location
    Wokingham, UK
    Posts
    544

    Is / can Slimserver use iNotify?

    You've worried me now!

    I believe this issue, however, relates to the scanning of the music
    library. At the moment it scans when you explicitly force it, or at
    scheduled intervals. Using inotify (on Linux) will ensure that it will
    immediately pick up any changes to make without having to explicitly
    force a rescan.

    I didn't think this had anything to do with player synchronisation
    (which I'll agree is actually very complex). Are we talking about the
    same thing?

    Stuart

    Michaelwagner wrote:
    > I wouldn't be quick to assume the problem can be fixed in a plug-in. It
    > goes quite deep.
    >
    > IIRC, sychronized players are only loosely synchronized. They each fill
    > their own buffers, and play at their own speed (set by the clock crystal
    > or some derivitive thereof). Sychronization code in the server stops
    > them all (or at least lets them run dry) and only restarts them when
    > the slowest one is finished. So the pause between tracks is needed for
    > synchronized play. Any attempt at removing it (cross-fade, gapless
    > play) breaks synchronized play.
    >
    > The solution, back in R6, was expected to come from a network time
    > signal that all players played to. But I don't think that got into 7.
    > Without it, (or the pause between songs) synchronized players would
    > unsynch within a few songs and sound awful.
    >
    > That is my recollection, although it's a year old and it is 6:30AM in
    > my time zone. So it could be wrong. And I've never looked at the 7 code
    > to see if the issues are still the same.
    >
    >
    >


Posting Permissions

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