Home of the Squeezebox™ & Transporter® network music players.
Page 2 of 2 FirstFirst 12
Results 11 to 17 of 17
  1. #11
    Senior Member kidstypike's Avatar
    Join Date
    Feb 2007
    Location
    Brindle
    Posts
    3,449
    Quote Originally Posted by noexit View Post
    OH, I see! I think I found it.... It's an LMS Plugin. Then I use Chrome Browser on Pi to "View" Squeezelite's current activity.

    When I get all this done, assuming I'm still in a functional capacity, I'll write up a nice Tutorial, of sorts, from a Beginner's Perspective.

    Thanks for all you guys do out there!
    Now playing screen of Material skin in app mode on Android phone.

    Name:  appmode.jpg
Views: 149
Size:  40.2 KB
    Server - LMS 8.0.0 Pi4B 4GB/Flirc case/pCP 6.0.0-b9 18K library, playlists & LMS cache on SSD (ntfs)
    Study - Pi3B+/pCP 5.0.0/pi screen/HiFiBerry DAC+/jivelite,
    Lounge - Pi2/pCP 5.0.0 > HiFiBerry DIGI+ > AudioEngine DAC1 > AVI DM5
    Dining Room - Squeezebox Boom
    Garage - Pi3B/Pi screen/HiFiBerry DAC+/pCP 5.0.0 > Edifier R980T

    Spares - 2xTouch, 1xSB3, 1xRadio, 6xRPi

  2. #12
    Senior Member
    Join Date
    Jan 2011
    Location
    Staffordshire. UK
    Posts
    3,064
    Quote Originally Posted by d6jg View Post
    By app mode I mean as a separate window with no navigation.

    Man In Vanĺs posted Image is a normal browser window.
    I was just trying to help boss

    Name:  deja_q_hd_046_resized_6484.jpg
Views: 148
Size:  12.5 KB

  3. #13
    Senior Member kidstypike's Avatar
    Join Date
    Feb 2007
    Location
    Brindle
    Posts
    3,449
    App mode on PC, light and dark versions.

    Name:  appmode2.jpg
Views: 144
Size:  169.4 KB

    Name:  appmode3.jpg
Views: 144
Size:  170.3 KB
    Server - LMS 8.0.0 Pi4B 4GB/Flirc case/pCP 6.0.0-b9 18K library, playlists & LMS cache on SSD (ntfs)
    Study - Pi3B+/pCP 5.0.0/pi screen/HiFiBerry DAC+/jivelite,
    Lounge - Pi2/pCP 5.0.0 > HiFiBerry DIGI+ > AudioEngine DAC1 > AVI DM5
    Dining Room - Squeezebox Boom
    Garage - Pi3B/Pi screen/HiFiBerry DAC+/pCP 5.0.0 > Edifier R980T

    Spares - 2xTouch, 1xSB3, 1xRadio, 6xRPi

  4. #14
    Senior Member
    Join Date
    Jan 2011
    Location
    Staffordshire. UK
    Posts
    3,064
    Salt in the wound

  5. #15
    Senior Member
    Join Date
    Feb 2011
    Location
    Cheshire, UK
    Posts
    4,482
    Quote Originally Posted by Man in a van View Post
    Salt in the wound
    Don't take it personally !!
    VB2.4 storage QNAP TS419p (NFS)
    Living Room - Joggler & SB3 -> Onkyo TS606 -> Celestion F20s
    Office - Pi3+Sreen -> Sony TAFE320 -> Celestion F10s / Pi2+DAC & SB3 -> Onkyo CRN755 -> Wharfedale Modus Cubes
    Dining Room -> SB Boom
    Kitchen -> UE Radio (upgraded to SB Radio)
    Bedroom (Bedside) - Pi2+DAC ->ToppingTP21 ->AKG Headphones
    Bedroom (TV) - SB Touch ->Sherwood AVR ->Mordaunt Short M10s
    Everything controlled by iPeng

  6. #16
    Nice advice, guys! I got it setup in app Mode. The overall objective is to make this Pi Media Player as dumbed-down and generally kid (5 year old) proof as possible.

    Last step might be this: getting the apps to share audio streams. I thought I had this working somehow using ALSA until I installed Squeezelite. Squeezelite was working, but in trying to configure correctly (which I don't know how to do) the DMix Plugin for ALSA I seem to have hosed the sound output. I'm currently using the following in my /etc/asound.conf file:

    Code:
    pcm.dmixer {
      type dmix
      ipc_key 1024
      ipc_key_add_uid false
      ipc_perm 0666                       # mixing for all users
      slave {
        pcm "hw:0,0"
        period_time 0
        period_size 1024
        buffer_size 8192
        rate 44100
      }
      bindings {
        0 0
        1 1
      }
    }
    
    pcm.dsp0 {
      type plug
      slave.pcm "dmixer"
    }
    
    pcm.!default {
      type plug
      slave.pcm "dmixer"
    }
    pcm.default {
      type plug
      slave.pcm "dmixer"
    }
    ctl.mixer0 {
      type hw
      card 0
    }
    This is my squeezelite_settings.sh file contents:

    Code:
    # ===========================v1.10==============================
    #              CHANGE THESE VALUES IF NEEDED
    
    # The name for the squeezelite player, do not use spaces (default the hostname
    # will be used):
    #SL_NAME="Framboos"
    #        Note: "Framboos" is Dutch for Raspberry... :-)
    
    # ----- SOUNDCARD -----
    # Set the soundcard
    SL_SOUNDCARD="dmix:CARD=audioinjectorpi"
    #
    # For Logilink USB soundcard UA0053, use:
    #SL_SOUNDCARD=""default:CARD=Set"
    #
    # For Behringer UCA 202 USB soundcard, use:
    #SL_SOUNDCARD="front:CARD=CODEC,DEV=0"
    #
    # For alsaequal, use:
    #SL_SOUNDCARD="equal"
    
    # ----- MAC ADDRESS -----
    # Uncomment the next line (remove hash) if you want to change the mac address (-m option):
    #SL_MAC_ADDRESS="00:00:00:00:00:01"
    #        Note: when left commented squeezelite will use the mac address of your ethernet card or 
    #              wifi adapter, which is what you want. 
    #              If you change it to something different, it will give problems if you use mysqueezebox.com .
    
    # ----- SERVER IP ADDRESS -----
    # Uncomment the next line (remove hash) if you want to point squeezelite 
    # at the IP address of your squeezebox server (-s option). And change the IP address of course..
    SB_SERVER_IP="192.168.10.65"
    #        Note: if this is not set, Squeezelite will use auto discovery to find 
    #              the LMS server, which works fine too.
    #
    # For the standalone LMS server tutorial, use:
    #SB_SERVER_IP="127.0.0.1"
    
    # ----- AUTO PLAY -----
    # Uncomment the next line if you want squeezelite to start playing on startup. BE AWARE: If you use this, you
    # should also uncomment and fill-in SB_SERVER_IP (see above). Otherwise this will not work.
    #SL_AUTO_PLAY="Yes"
    # Uncomment next if you want to auto play a certain favorite, only (a unique) part of the favorite's name is sufficient.
    #SL_AUTO_PLAY_FAV="3FM"
    # Uncomment next if you want to auto play with a certain volume, use a value from 0 to 100.
    #SL_AUTO_PLAY_VOLUME="45"
    
    # ----- MISC SETTINGS -----
    # Uncomment the next line (remove hash) if you want to set ALSA parameters (-a option, set to buffer size 80).
    # format:  <b>:<p>:<f>:<m>, b = buffer time in ms or size in bytes, p = period count or size in bytes, f sample format (16|24|24_3|32), m = use mmap (0|1)
    #SL_ALSA_PARAMS="80:::0"
    
    # Uncomment the next TWO lines to turn on logging (-f and -d option):
    #SL_LOGFILE="/var/log/squeezelite.log"
    #SL_LOGLEVEL="all=debug"
    
    # Uncomment the next line if you want to start the squeezelite daemon with a specific user.
    #SL_USER="pi"
    
    # Uncomment the next line if you want to start the squeezelite daemon with a specific working directory
    #SL_WORKING_DIR="/home/pi"
    
    # Uncomment and change the next line if you want to use a different squeezelite version.
    #SL_DOWNLOAD_URL="url to squeezelite zip file"
    #
    # NOTE: Dowload url should be for a zip file named "squeezelite-armv6hf.tar.gz", the zip file must contain a squeezelite executable named "squeezelite".
    #
    
    # If you want to use different squeezelite options, not set by this script, use the next line:
    #SL_ADDITIONAL_OPTIONS=""
    
    # =========================================================
    Here's the output of sudo /usr/bin/squeezelite-armv6hf -l :
    Code:
    Output devices:
      null                           - Discard all samples (playback) or generate zero samples (capture)
      dmixer                        
      dsp0                          
      default                       
      sysdefault:CARD=audioinjectorpi - audioinjector-pi-soundcard, AudioInjector audio wm8731-hifi-0 - Default Audio Device
      dmix:CARD=audioinjectorpi,DEV=0 - audioinjector-pi-soundcard, AudioInjector audio wm8731-hifi-0 - Direct sample mixing device
      dsnoop:CARD=audioinjectorpi,DEV=0 - audioinjector-pi-soundcard, AudioInjector audio wm8731-hifi-0 - Direct sample snooping device
      hw:CARD=audioinjectorpi,DEV=0  - audioinjector-pi-soundcard, AudioInjector audio wm8731-hifi-0 - Direct hardware device without any conversions
      plughw:CARD=audioinjectorpi,DEV=0 - audioinjector-pi-soundcard, AudioInjector audio wm8731-hifi-0 - Hardware device with all software conversions
    Only thing I need to do is have all outputs of all apps regardless of user share the audioinjector sound output - thus, from what I understand DMix should do it.

    Should I go ahead and install either Jack or PulseAudio?
    Thanks guys!
    Last edited by noexit; 2020-01-14 at 09:53. Reason: Add squeezelite-armv6hf -l output

  7. #17
    OK guys! I finally got it. I reapplied the setup scripts for my soundcard, then applied the following to my /etc/asound.conf
    Code:
    pcm.!default {
            type plug
            slave.pcm "dmix"
    }
    Next I un-commented and changed these lines in /usr/local/bin/squeezelite_settings.sh
    Code:
    SL_SOUNDCARD="dmix:CARD=audioinjectorpi,DEV=0"
    SB_SERVER_IP="192.168.10.65"
    SL_ALSA_PARAMS="80"
    Un-commenting the SL-ALSA PARAMS line was for the purpose of trying to correct a "stuttering" problem that would start happening after several minutes of playback. That issue is still ongoing, but I decided to create a new post for that as it seems to be more complex in that Squeezelite seems to be playing back too fast: https://forums.slimdevices.com/showt...g-way-too-fast

    At any rate, the Audio Sharing problem seems to be corrected: I can play VLC, Squeezelite, and even YouTube via browser all at the same time. Why the Hell would I want to do something like that? I'm not sure either. It's really about making the "switch" between applications that my kids will likely do, smooth and easy. When I get this little 2 Pi Project done I'll do up some nice documentation with lessons learned.

    Thanks guys!

Posting Permissions

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