PDA

View Full Version : How do slimserver clients sync to same stream ?



Robert Rozman
2005-03-22, 11:18
Hi,

I wonder how do clients sync to same music source ? What should be done by
client and what by slimserver ?

What has to be done on client to sync properly ?

When thinking as a total newbie I'd guess that they should be in sync if
connected to same stream - but I must be wrong ....

Regards,

Rob.

kdf
2005-03-22, 11:31
Quoting Robert Rozman <rozman (AT) etrust (DOT) si>:

> Hi,
>
> I wonder how do clients sync to same music source ? What should be done by
> client and what by slimserver ?
>
> What has to be done on client to sync properly ?
>
> When thinking as a total newbie I'd guess that they should be in sync if
> connected to same stream - but I must be wrong ....

all clients get their own streams.

syncing means that players have matching streams playing at the same time.

http players cannot be synchronised

softsqueeze and hardware players can, and are set this way via player settings

-kdf

Robert Rozman
2005-03-22, 15:29
----- Original Message -----
From: "kdf" <slim-mail (AT) deane-freeman (DOT) com>
To: "Slim Devices Discussion" <discuss (AT) lists (DOT) slimdevices.com>
Sent: Tuesday, March 22, 2005 7:31 PM
Subject: [slim] How do slimserver clients sync to same stream ?


> Quoting Robert Rozman <rozman (AT) etrust (DOT) si>:
>
>> Hi,
>>
>> I wonder how do clients sync to same music source ? What should be done
>> by
>> client and what by slimserver ?
>>
>> What has to be done on client to sync properly ?
>>
>> When thinking as a total newbie I'd guess that they should be in sync if
>> connected to same stream - but I must be wrong ....
>
> all clients get their own streams.
>
> syncing means that players have matching streams playing at the same time.
>
> http players cannot be synchronised
>
> softsqueeze and hardware players can, and are set this way via player
> settings
>
Ok, thanks for info.

What I'm trying to know is HOW they synhonize ? Do they talk to each other,
to server - timestamps, ... ? How is sync feature implemented in softsqueeze
?

Thanks in advance,

regards,

Rob.

kdf
2005-03-22, 15:57
Quoting Robert Rozman <rozman (AT) etrust (DOT) si>:


> Ok, thanks for info.
>
> What I'm trying to know is HOW they synhonize ? Do they talk to each other,
> to server - timestamps, ... ? How is sync feature implemented in softsqueeze
> ?

between each track, the server waits for all clients to be ready
($client->readytosync), and buffers ($client->bufferFullness) at the playable
level. They are all then started at the same time. It is all handled by the
server. As for the specifics of how softsqueeze fakes itself as hardware, I'll
have to leave that one for Richard.

-kdf

rtitmuss
2005-03-22, 16:00
Robert Rozman wrote:

> What I'm trying to know is HOW they synhonize ? Do they talk to each
> other, to server - timestamps, ... ? How is sync feature implemented
> in softsqueeze ?

All the players communicate only with the server, using the slimproto
protocol. This allows the server to detect the audio buffer status in
each player, and start and stop the streams. When playing in sync the
server sends the audio stream to the players, but they are paused and
just buffer the data. Once all the players reach a buffer threshold the
server sends a play message to each player, and they all start playback
together. This process repeats at the start of each track, to keep the
players in sync. Softsqueeze emulates the squeezebox, including the
appropriate buffer sizes, and protocols etc.

Regards,
Richard

Thomas Egrelius
2005-03-23, 06:36
> between each track, the server waits for all clients to be ready
> ($client->readytosync), and buffers ($client->bufferFullness) at the playable
> level. They are all then started at the same time. It is all handled by the
> server. As for the specifics of how softsqueeze fakes itself as hardware, I'll
> have to leave that one for Richard.

Hmm... this is interesting (in combination with the reply from Richard) as
I have never been able to sync my squeezebox and softsqueeze (on the same
LAN) with eachother properly. The softsqueeze is always a beat or two
behind, and it doesn't change between songs.

I have read many previous posts about this as well, but haven't managed to
get it working on my end. I haven't had the option to test two hardware
boxes together yet though. Squeezebox is on wireless while the PC is
wired, if that makes any difference, but as I understand it, that
shouldn't really impact on the syncing. Or?

/Egge

Thomas Egrelius
2005-03-23, 07:12
> I may be wrong on this, but if anything I would think that you would have
> higher latency/jitter on the wireless side, not on the wired side. Since
> the wired is running behind the wireless, I wonder if your sound card/driver
> is somehow injecting latency? What type of card are you using?

Hmm... could be... I'll check what card I have when I get home. It is an
on-board thingie and I don't recall the name of the MB.

/Egge

>
> Mike
> ----- Original Message -----
> From: "Thomas Egrelius" <lists (AT) egge (DOT) se>
> To: "Slim Devices Discussion" <discuss (AT) lists (DOT) slimdevices.com>
> Sent: Wednesday, March 23, 2005 8:36 AM
> Subject: [slim] How do slimserver clients sync to same stream ?
>
>
> >
> > > between each track, the server waits for all clients to be ready
> > > ($client->readytosync), and buffers ($client->bufferFullness) at the
> playable
> > > level. They are all then started at the same time. It is all handled by
> the
> > > server. As for the specifics of how softsqueeze fakes itself as
> hardware, I'll
> > > have to leave that one for Richard.
> >
> > Hmm... this is interesting (in combination with the reply from Richard) as
> > I have never been able to sync my squeezebox and softsqueeze (on the same
> > LAN) with eachother properly. The softsqueeze is always a beat or two
> > behind, and it doesn't change between songs.
> >
> > I have read many previous posts about this as well, but haven't managed to
> > get it working on my end. I haven't had the option to test two hardware
> > boxes together yet though. Squeezebox is on wireless while the PC is
> > wired, if that makes any difference, but as I understand it, that
> > shouldn't really impact on the syncing. Or?
> >
> > /Egge
> >

Mike Hartley
2005-03-23, 07:14
Thomas,
I may be wrong on this, but if anything I would think that you would have
higher latency/jitter on the wireless side, not on the wired side. Since
the wired is running behind the wireless, I wonder if your sound card/driver
is somehow injecting latency? What type of card are you using?

Mike
----- Original Message -----
From: "Thomas Egrelius" <lists (AT) egge (DOT) se>
To: "Slim Devices Discussion" <discuss (AT) lists (DOT) slimdevices.com>
Sent: Wednesday, March 23, 2005 8:36 AM
Subject: [slim] How do slimserver clients sync to same stream ?


>
> > between each track, the server waits for all clients to be ready
> > ($client->readytosync), and buffers ($client->bufferFullness) at the
playable
> > level. They are all then started at the same time. It is all handled by
the
> > server. As for the specifics of how softsqueeze fakes itself as
hardware, I'll
> > have to leave that one for Richard.
>
> Hmm... this is interesting (in combination with the reply from Richard) as
> I have never been able to sync my squeezebox and softsqueeze (on the same
> LAN) with eachother properly. The softsqueeze is always a beat or two
> behind, and it doesn't change between songs.
>
> I have read many previous posts about this as well, but haven't managed to
> get it working on my end. I haven't had the option to test two hardware
> boxes together yet though. Squeezebox is on wireless while the PC is
> wired, if that makes any difference, but as I understand it, that
> shouldn't really impact on the syncing. Or?
>
> /Egge
>

Mike Hartley
2005-03-23, 07:34
Thomas,
When you check, also see if you have the most updated driver version
available. If not, you may want to try updating it and see if that solves
your issue.

Mike

----- Original Message -----
From: "Thomas Egrelius" <lists (AT) egge (DOT) se>
To: "Slim Devices Discussion" <discuss (AT) lists (DOT) slimdevices.com>
Sent: Wednesday, March 23, 2005 9:12 AM
Subject: [slim] How do slimserver clients sync to same stream ?


>
> > I may be wrong on this, but if anything I would think that you would
have
> > higher latency/jitter on the wireless side, not on the wired side.
Since
> > the wired is running behind the wireless, I wonder if your sound
card/driver
> > is somehow injecting latency? What type of card are you using?
>
> Hmm... could be... I'll check what card I have when I get home. It is an
> on-board thingie and I don't recall the name of the MB.
>
> /Egge
>
> >
> > Mike
> > ----- Original Message -----
> > From: "Thomas Egrelius" <lists (AT) egge (DOT) se>
> > To: "Slim Devices Discussion" <discuss (AT) lists (DOT) slimdevices.com>
> > Sent: Wednesday, March 23, 2005 8:36 AM
> > Subject: [slim] How do slimserver clients sync to same stream ?
> >
> >
> > >
> > > > between each track, the server waits for all clients to be ready
> > > > ($client->readytosync), and buffers ($client->bufferFullness) at the
> > playable
> > > > level. They are all then started at the same time. It is all
handled by
> > the
> > > > server. As for the specifics of how softsqueeze fakes itself as
> > hardware, I'll
> > > > have to leave that one for Richard.
> > >
> > > Hmm... this is interesting (in combination with the reply from
Richard) as
> > > I have never been able to sync my squeezebox and softsqueeze (on the
same
> > > LAN) with eachother properly. The softsqueeze is always a beat or two
> > > behind, and it doesn't change between songs.
> > >
> > > I have read many previous posts about this as well, but haven't
managed to
> > > get it working on my end. I haven't had the option to test two
hardware
> > > boxes together yet though. Squeezebox is on wireless while the PC is
> > > wired, if that makes any difference, but as I understand it, that
> > > shouldn't really impact on the syncing. Or?
> > >
> > > /Egge
> > >

Thomas Egrelius
2005-03-24, 05:40
> When you check, also see if you have the most updated driver version
> available. If not, you may want to try updating it and see if that solves
> your issue.

The on-board device is a Realtek AC'97. Downloading the latest driver
right now... let's see what happens ;)

/Egge

rtitmuss
2005-03-25, 14:44
Thomas Egrelius wrote:

>
>Hmm... this is interesting (in combination with the reply from Richard) as
>I have never been able to sync my squeezebox and softsqueeze (on the same
>LAN) with eachother properly. The softsqueeze is always a beat or two
>behind, and it doesn't change between songs.
>
>
Assuming your using Windows: you need to check that you are using Java
1.5 and have the Primary Sound Driver selected in the audio preferences.

Richard