Audio Player

The Max2Play Image for  Raspberry Pi and ODroid offers preinstalled audio players that can easily be controlled and configured through the web interface.

We currently have three different players implemented: Squeezelite (Software Squeezebox), Shairport (AirPlay) and MPD. The players differ in their complexity and their applications. For a Multiroom setup, we recommend the use of Squeezelite in combination with the Squeezebox Server. Shairport offers easy playback from Apple devices or iTunes.

To compile the appropriate hardware (Raspberry PI and matching sound card) for the right purpose, we recommend our multiroom audio configurator.

How to use the different Max2Play Bundles, you can see in this example of application for a multiroom audio setup.

Squeezelite

is a software player with all Squeezebox functions:

  • Playback from internet radio and podcasts
  • Many plugins for Spotify, playlists, etc.
  • Playback of local music libraries
  • Apple Airplay with the Shairtunes Plugin (can be installed in the „Squeezebox Server“ menu)
  • Sleeptimer, alarm function
  • Synchronize multiple players
  • Supporting AAC and FLAC files for optimal music enjoyment
  • Visualization and control options on the device via Addon Jivelite (HDMI / Touchdisplay)
  • Synchronize multiple players
  • Control via apps: iPeng, Squeezer, Squeezebox-Commander
  • Control and configuration in the Squeezebox Server web interface
For Squeezelite, a running Squeezebox Server in the local network is necessary. This is easily done with Max2Play. Multiple Max2Play devices (Raspberry Pi’s, ODROID’s) or Squeezeboxes can be synchronized in the network.

Main Applications: Multiroom Audio, High-End-Audio, Music Alarm

Shairport

is a software player that supports Apple Airplay:

  • direct playback of music from iPhone
  • direct playback of music from iPad
  • direct playback of music from iTunes

With Shairport, all music can be streamed directly to the Raspberry Pi 2 or the ODROID.

Main Applications: easy audio player solution to stream music from iTunes or Apple devices onto the Max2Play device.

MPD

is an audio player that is easy to use:

  • Simple playback of internet radio stations
  • Easy integration of music from hard drives or local storage mediums

With the Max2Play extension, the administration and control of the MPD player is facilitated: installing a music drive, a playlist directory (easy mounting with Max2Play extension) as well as special options for a connected sound card.

Main Applications: simple audio player solution for playback of internet radio or local music.

Corresponding plugins for the audioplayer feature:

Support of sound cards by Max2Play

In addition to the easy installation and administration of audio players, Max2Play also offers simple and fast integration of sound cards.

List of all Amp’s, DAC’s und DIGI’s that are supported by the Max2Play Raspberry Pi Image:

All HiFiBerry, IQaudIO and JustBoom sound cards can be directly activated in the special Max2Play Images for HiFiBerry, IQaudIO and JustBoom. For all other cards, the activation can be set in the extension “Raspberry Settings”. For all these sound cards, the optimal hardware settings are preset (clock frequency, voltage, video memory).

Max2Play also supports USB sound cards: These can be used (if the HDMI output is occupied) to enhance the audio output.

Additionally, Max2Play offers an equalizer function on the web frontend and other filters for audiophile uses.

Raspberry Pi Audioplayer for HiFiBerry

Max2Play Setup for MPD Player Audioplayer on a Raspberry Pi

Max2Play How to - Network Shares

Max2Play Accesspoint Extension: a guide how to use a Raspberry Pi mobile

33 Comments

  1. mrp 2 years ago

    Shairplay… Has anyone with a Raspberry pi B+ and IQ audio card been able to make Shairplay work? I’ve tried several times with no Airplayer shown. I have installed squeezelite and Squeeze server on my RPi. I have installed the shaiplay plugin. I only see my Apple TV as a choise

    • Heiner 2 years ago

      Have you tried following our tutorial video on the Raspberry Settings extension for audio cards? With the Max2Play image installed and a premium license activated, you should have no problem running Airplay with the Shairtunes Plugin for the Squeezebox Server. Just make sure that Shairport is not running and has its autostart deactivated. Here is the link to the video: https://www.youtube.com/watch?v=uIb56VeGCP0

  2. mrp 2 years ago

    so without the settings extension I shall not be able to get shairtunes plugin work? Please note that in your desription section

    • Heiner 2 years ago

      No, the shairtunes plugin does not work when the Shairport player is running in the background or is on autostart. Raspberry Settings is not required for shairtunes to work, it is required for sound cards like the IQ audio to work properly.

  3. Michel 2 years ago

    First let me say: M2P rocks!!!
    My config : Raspberry 2 + HifiBerry Amp+ (bought the bundle in your shop)
    It took me some time to realize that only one player software (Squeezelite/Shairport/DLNA) should be activated at a given time:
    Is this documented anywhere? is this specific to this config (Amp+)?

    AND: is there any chance for this to be enhance in the future ?
    Thanks & regards

    • Heiner 2 years ago

      Hello Michel,
      Thanks for the kind words. I try to mention it as much as possible in my videos but you have a point that this information should be more prominent. The issue is a general one and not specific to your setup. We will consider including it in the next update.

      Sincerely
      Heiner from Max2Play

  4. mrp 2 years ago

    tried one more time by reinstalling everything. Rpi B + IQAudio. Everything works beautifully but I still can not get any shairtune devices available in my network. My Apple TV and Airport express are shown and working. I use LAN connection to my Rpi. I have an Asus RT-N56U as router after my cable modem. If it was just the WLAN with iPad Air or iPad mini or iPad 2 (all with ios 8.X) we have in our household but also iMac iTunes only shows Airport express and Apple TV as alternatives. Also Apple TV shows only Airport Express as option for speakers.
    Wen you say “Settings is not required for shairtunes to work, it is required for sound cards like the IQ audio to work properly.” What do you, Heiner, mean? My IQ Audio is working great without any settings plugin.
    I do not have Shairport started and I have installed Shairtunes2 and checked in server settings that the plugin is seleced there. Is there a way of checking whether shairtunes plugin is doing anything or not?

    • Heiner 1 year ago

      Hello mrp,
      Regarding the settings, you need a premium license to install and use the extension “Raspberry Settings” with which you can select sound cards and optimize the performance of the card and Raspberry.
      Regarding your problem, the first question would be whether you ticked off the autostart box for shairport, because otherwise shairport restarts constantly and interrupts the system. Otherwise I would recommend testing shairport seperately with Squeezelite not running to see if the Airplay functionality itself in your system works. If that is the case, I would recommend trying to deinstall the Squeezebox Server and installing the another version with which you can try the Shairtunes plugin again. If you are still not getting results, please send us the debug info so we can narrow down the problem more easily.

  5. mrp 1 year ago

    Shairport does not show any airplay devices either, with no squeezelite running. Where can I get the debug info?

    • Heiner 1 year ago

      The Debug Info is at the end of the page of each tab in the web interface. Please copy and paste it either into a forum post in our forum or via email so we can take a look.

  6. Nev 1 year ago

    How can I make audioplayer (squeezelite/logitech media player) continue to play the playlist when the Pi is powered up without having to connect via the web interface. I just want the Pi to play music when I switch it on without any other intervention.
    Keep up the good work – M2P is excellent .

    • Heiner 1 year ago

      Hello Nev,
      You can add commands to the boot sequence to apply this request.
      Here is an overview of the commands: http://tutoriels.domotique-store.fr/content/54/95/fr/api-logitech-squeezebox-server-_-player-http.html
      You need to integrate it in /etc/rc.local
      There you type nano /etc/rc.local
      Then:
      # Example for CLI-Request for the Status of the playback via http-GET Request (Please take into account the start-up latency of the Squeezebox Server)
      # Before exit put in 0 !
      sleep 30
      wget -q -O – “http://max2play:9000/status.html?p0=play&p1=preset_1.single&player=[MAC-Address URL-encoded]”

  7. mrp 1 year ago

    hello,

    I still have not succeeded in getting airplay to work. Now I was wondering if there is any way of playing browser-based music sources, Naxos music library in particular with a max2play-setup?

  8. kannan 1 year ago

    I cannot get the graphic equalizer to work. I have chosen the USB soundcard as the audio device which is a Xonar U7. When I choose the equalizer as the audio device then there is no sound output from the Xonar.
    Do I have to add some more settings in squeezelite to get the audio stream to pass through the equaliser before being sent to the Xonar.

    • Heiner 1 year ago

      Hi Kannan,
      Please try to tick the option “Use USB-DAC” in the Audio Player menu. That might get the equalizer to work. However, we cannot guarantee compatibility with our equalizer with every USB sound card. Unfortunately, we have no experience with the Xonar U7.

  9. mrp 1 year ago

    I had shairtunes2 working for- two days. I do not know what had changed and what made it disappear again….

  10. Alberto 1 year ago

    Hi,
    I’d ike to try your solution to build a headless music client with Squeezelite on my rasp pi. I have only one question: after a proper installation and configuration, can I run M2P with memory card in read only mode? if yes, I can stop my rasp pi without a proper shutdown without any risks removing the wall plug. I know, this is not the best way to do it but it could be easier.
    thanks

    • Heiner 1 year ago

      Hi Alberto,
      Squeezelite and now with the newest version also Jivelite can run in the read-only mode without problems. However, you cannot run the Squeezebox Server on a device with the read-only mode enabled.

  11. KO 1 year ago

    I just have installed Hifi Berry DAC+(image) on rpi2 cannot get the equalizer to work
    Have an older installation (rpi B)-“Max2Play Raspberry Pi Image” with a cheap clone of the Hifi Berry DAC with no problems on the graphic eq
    Forgot if i ever did any changes on the install – is been a while – i think it just worked, found the card and EQ worked
    Not such luck with the newer DAC+
    Of course i 1st installed the image i already had – “Max2Play Raspberry Pi” I changed the
    dtoverlay=hifiberry-dacplus
    Did play fine a local file with aplay myfile.wav but squeezelite could not start – so i found the hifiberyy image – no idea was up
    NICE! – A lot of new things here since i last explored 😉

    • Maximilian 1 year ago

      Hi KO,

      thank you for your comment and positive feedback about the new features of Max2Play.

      Corrected version:
      The Equalizer can be used by choosing “plugequal” in the Advanced Options of Squeezeliteplayer (Audioplayer menu). Afterwards, tick the “Use Equalizer” checkbox, choose the EQ settings you want and uncheck the box again, if you want to improve the loading time of the audioplayer tab. By the way, using this equalizer leads to a decreased resolution of your audio signal and, accordingly, to a worse quality of audio playback.

      Maximilian from Max2Play

  12. Che 1 year ago

    Do you have more details or an example of how this works with Spotify, and is it possible to play Spotify to multiple players simultaneously (from the Server I presume)? Thanks.

    • Heiner 1 year ago

      Hi Che,
      The Spotify-functionality comes from the third-party-plugin on the Squeezebox Server, triode’s Spotify plugin. You can find more info on its capabilities around the net. It supports one stream from Spotify at a time which can be synchronized and played simultaneously on mutliple devices.

  13. KO 1 year ago

    ..hmm
    That’ s to bad
    I need some kind of “Tone Control”
    Worse quality ? ha – don’t really care as long as i have an EQ 😉
    On this pg https://www.hifiberry.com/guides/guide-adding-equalization-using-alsaeq/
    It does say “The equalisation works only when the application uses the default output device from asound.conf. Applications that are configured to use the hardware device directly (you might see “hw:0” or similar in the command line options or in the configuration file) won’t use the equalisation plugin”
    So i’m kind of confused – The DAC is configured as Default but it is hw 0
    cat /etc/asound.conf
    ctl.!default {
    type hw
    card 0
    }
    pcm.!default {
    type hw card 0
    }
    pcm.equal {
    type plug;
    slave.pcm plugequal;
    }
    ctl.equal {
    type equal;
    }

    pcm.plugequal {
    type equal;
    slave {
    pcm “plughw:0,0”;
    }
    hint {show on;description “Equalizer for plughw:0,0”}
    }

    pcm.headphonesplug {
    type plug
    slave.pcm “hw:0,0”
    }

    pcm.bs2b {
    type ladspa
    slave.pcm “headphonesplug”
    path “/usr/lib/ladspa”
    plugins [
    {
    label bs2b
    input {
    controls [ 500 4.5 ]
    }
    }
    ]
    }

    pcm.headphones {
    type plug
    slave {
    pcm “bs2b”
    rate 44100
    }
    }

    Is there a ‘compromise’ ?
    I w’d love that – I cannot get a hardware EQ for each ‘zone’ – and i have quite a few 😉

    Any suggestions?

    • Maximilian 1 year ago

      Hi KO,

      I got somethink wrong, sorry. I edited my comment above. Does it work for you?

      Maximilian from Max2Play

  14. Joseph 12 months ago

    Can I use Max2play to setup the following: a Raspberry pi 2 running Pandora streaming over wifi to Google Chromecast Audio? I want to use a touchscreen and create so wife can listen to audio throughout house.

    Thank you

    • Heiner 12 months ago

      Hi Joseph,
      Pandora should work on the Squeezebox Server-plugin for Max2Play. Google Chromecast Audio, however, could be a problem. We have no experience with this hardware yet and do not know if it supports the Squeezebox-System-Software which would be required to make the Chromecast a player. We would recommend either using another Raspberry Pi 2 or the same Pi as a player. All you need is an instance of Squeezelite to receive the audio from the Server. You can try out how well Pandora works with the SBS on our free Image. Both player and server come preinstalled.

  15. Dominik 10 months ago

    Hi!

    Will M2P work in the RPI3 receiving Audio via squeezlite and playing via Bluetooth?

    Thanks!
    Dom

    • Heiner 10 months ago

      Hi Dominik,
      If you mean using a Bluetooth speaker as output for a Squeezelite player, then yes.

  16. Warren A Evans 10 months ago

    MAX2PLAY is a very good program. I salute your accomplishments in make such a quality product.

    Could you please make a newer Image download for HiFiBerry users?

    I have been using the DAC+ board through my R-Pi2B+ for over a year. This past week I got a HiFiBerry DAC+ PRO and was not successful using the image download. The LED on the card never came on and audio never came out. Re-installed DAC+ and all is back to normal again.

    Do you think a newer image with the latest Rasberry Pi and HiFiBerry drivers might help?

    Thank you again.

    • Heiner 10 months ago

      Hi Warren,
      our Raspberry and HiFiBerry drivers are up to date. We also have a new Jessie-based image support Bluetooth if you want a new image. However, our images can be updated in the Settings/Reboot-menu. We are currently on 2.29
      The integration of the HiFiBerry sound cards should not be an issue. Could you not select the DAC+ PRO in the Raspberry Settings?

  17. Andre 9 months ago

    Hi,

    I have a Pi with Max2Play installed. Squeezelite works well and outputs to my Hifiberry Digi well. However, Airplay/Shareport doesn’t output at all. iTunes connects well with an Airport Express and also with a Neet Airstream. It also works with Retune for control on Android. So I don’t think iTunes is the issue. Since the Pi/Hifiberry also work perfectly with Squeezelite, I don’t think the cables or hardware can be the issue.

    The only other clue I have for you is that when I send music to the Pi via Shareport, the digitial receiver locks on to a SP/DIF signal … but it is silent. Try the same thing via Squeezelite – all works.

    I don’t want to use Squeezeserver anymore and am using iTunes for Airplay and multiroom. Hence I’d like this to work.

    Any ideas?

    • Heiner 9 months ago

      Hi Andre,
      Please post your problems in our forums so the whole community can benefit and contribute to the exchange. Have you set the same output for both Squeezelite and Shairport? If so, please make sure to deactivate Squeezelite when using Shairport and vice versa.

  18. ANDRE 9 months ago

    Apologies. Will use forums next time. Simple fix. Turn off PI and Mac/iTunes, reboot, all works!

Leave a reply

Your email address will not be published. Required fields are marked *

*