Several rooms, one song – multiroom in Gexis Player ๐Ÿ”Š

Since Gexis Player 1.8.0, first on the Testing channel, players on the same home network can play the same music together, in sync. Put two or more of them in a group, start the music on any of them, and it plays in every room at once.

It works for every source the player has: Lyrion, Spotify, Bluetooth, Plexamp, and whatever plugins add. A plugin has nothing to do for it – the player carries its sound to the others.

The group volume in the panel's drawer, and the group on the phone
Three players in a group: the volume on the panel, the list of players on the phone.

๐Ÿ  Making a group

There are three ways in, one for each kind of screen.

  • On the phone, tap the player’s name at the top for Gexis players. Every other player on the network is listed with what it is doing, and each has Join.
  • On the panel, open the volume drawer: under the volume, Other players and Add players.
  • On a bar, the tray’s Group button.

The player joined stops what it was playing, says Joining ยท catching up, and plays the group’s music a moment later. A group lasts until it is undone – a restart included, so a player switched off and on comes back in its group.

The group on the phone
On the phone: the group at the top, the leader tagged, the other players below with Join.

A player without a screen is grouped from the phone, like any other. A player that has not been updated yet is listed too, and says Update to join.

โ–ถ๏ธ What a group plays

Music started on any player of the group plays on all of them, and that player leads – it is tagged Leads in the list. Start Spotify on the kitchen’s player while the living room leads, and the kitchen leads from then on; the living room plays along.

A player in a group plays nothing of its own. Every player of the group shows the group’s Now Playing, marked with Kitchen, Study, and play, pause and skip work from any of them – the command goes to the player that leads. To play something else in one room only, that player leaves the group.

๐Ÿ”Š Each room its own volume

Each player keeps its own level. Grouped, the volume control becomes the group’s All slider, with a row for each player under it.

The All slider moves every player the same share of its way up or down. A louder room stays louder, and all of them reach the top and the bottom together – so turning the whole house down and back up again returns each room to where it was. Each player’s own row sets that one alone, and its speaker icon mutes it.

The group in the bar's tray
On a bar, the group’s volume sits in the tray, a card for each player.

A few things follow the way each source works:

  • A player on Fixed volume, where an amplifier sets the level, is not moved; its mute still works where its output has a control of its own.
  • Moving the volume in Spotify, or in a plugin that hands its volume over, moves the group.
  • A Lyrion app sets each player’s own volume, as Lyrion’s own sync always has.

โฑ๏ธ A moment late, all together

For several rooms to sound as one, every player holds the music for about 0.4 seconds before it plays it – the player that leads too, so all the rooms are heard at once. A pause or a skip is heard that much later. A player playing alone has no such delay.

๐ŸŽถ Lyrion, through Lyrion’s own sync

Lyrion has synced its players for a long time, and the player uses that where it can. While the group plays Lyrion and all its players use the same Lyrion server, Lyrion’s own sync plays it: gapless between tracks, bit-perfect, native DSD as each player plays it alone.

The two kinds of grouping are one. Players synced in a Lyrion app are grouped on the players too, and unsyncing one there takes it out of the group. A group made on the players is synced in Lyrion while it plays Lyrion, so Lyrion’s apps show it as well.

With players on different Lyrion servers, Lyrion cannot sync them. Such a group plays Lyrion as it plays every other source: not gapless between tracks, and DSD as PCM.

How it works inside

For every source but Lyrion’s own sync, the player uses Snapcast, open-source multiroom software. Every player of a group runs it; a player alone has none of it.

The player that leads sends what its source plays into a second, internal sound card – a loopback – instead of to its own speakers. Its Snapcast server reads that and sends the music to every player of the group, its own included, losslessly: FLAC at 32 bits, at the source’s own sample rate. Each player plays it through its own chain – its own equaliser, its own volume, its own output – so each player’s DAC gets what it takes. To stay in time with the others, a player now and then adds or drops a single sample.

When a track changes sample rate, the stream starts again at the new rate, which costs a short gap.

Each player is still itself

Grouping changes what a player plays, not what it is. Each keeps its own equaliser setting, its own visualiser showing what it plays, and its own output.

When the player that leads is switched off, the others fall silent and stay grouped (Grouped ยท silent). Music started on one of them makes it lead.

Remove, Leave, Undo

  • Remove takes another player out of the group.
  • Leave group takes this one out.
  • Undo group ends the group, asking first. The music stays on the player that leads, without a cut.

The player that leads cannot be removed or leave: Undo group ends its group.

๐Ÿ–ฑ๏ธ Also new in 1.8.0

A sideways scroll over a slider now moves it – two fingers on the phone’s touchpad, or a computer’s touchpad on the player’s page in a browser. On the equaliser’s upright bands, an up-and-down scroll does the same.

The release also brings fixes found while testing multiroom on four test players: the volume returning to where it was after a mute, the equaliser’s switch moving the moment it is pressed, and a phone page that catches up at once after the phone has been asleep.

What comes next

Before multiroom is called done, it is measured on the test players’ Wi-Fi: the delay heard from a command, an hour without a dropout, how far apart the rooms are by Snapcast’s own figures and by ear, and what it costs a Raspberry Pi 4 with the equaliser and the visualiser on. Joining and unjoining players from Home Assistant comes with the integration’s release after the player’s.

The manual’s section 6, Several rooms together, has the whole of it.