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=""
  
  # =========================================================
  
--------------------


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!


------------------------------------------------------------------------
noexit's Profile: http://forums.slimdevices.com/member.php?userid=66502
View this thread: http://forums.slimdevices.com/showthread.php?t=111465

_______________________________________________
Squeezecenter mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/squeezecenter

Reply via email to