Adrian,

One other thing while I think about it. Talking about editing the
squeezelite config file..... For the web interface to be able to edit
each param, I changed from using a single options string to ........


Code:
--------------------
    
  $ cat /etc/sysconfig/squeezelite
  
  NAME="-n SqueezeLiteNC10"
  MAC="-m 00:21:63:a3:b9:0d"
  MAX_RATE="-r 192000"
  AUDIO_DEV="-o hw:CARD=Intel,DEV=0"
  LOG_FILE="-f /var/log/squeezelite/squeezelite.log"
  # LOG_LEVEL="-d <log>=<level>"
  # PRIORITY="-p <priority>"
  # BUFFER="-b <stream>:<output>"
  # CODEC="-c <codec1>,<codec2>"
  # ALSA_PARAMS="-a <b>:<c>:<f>:<m>"
  SERVER_IP="192.168.0.20"
  
--------------------



Code:
--------------------
    
  $ cat /lib/systemd/system/squeezelite.service
  
  [Unit]
  Description=Squeezelite Player
  After=local-fs.target syslog.target network.target
  
  [Service]
  # disable the automatic creation of a "cpu" cgroup only for this one service
  # otherwise the squeezelite output thread will not run RT
  ControlGroup=cpu:/
  
  Nice=-10
  LimitRTPRIO=50
  LimitMEMLOCK=infinity
  
  User=squeezelite
  EnvironmentFile=-/etc/sysconfig/squeezelite
  ExecStart=/usr/bin/squeezelite\
  $NAME $MAC $PRIORITY\
  $MAX_RATE $AUDIO_DEV\
  $BUFFER $CODEC $ALSA_PARAMS\
  $LOG_FILE $LOG_LEVEL\
  $SERVER_IP
  
  [Install]
  WantedBy=multi-user.target
  
--------------------


So, from your jivelite config screen you just need to modify the
AUDIO_DEV line if you just want to change the output dev. Of course, if
you have better ideas, you go ahead and I'll follow, but I would like to
have each option on a separate line. ;)


------------------------------------------------------------------------
JackOfAll's Profile: http://forums.slimdevices.com/member.php?userid=3069
View this thread: http://forums.slimdevices.com/showthread.php?t=98190

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

Reply via email to