mherger wrote: 
> > Cool, looks like it is working. Flac decoding to PCM  on the qnap
> > server/LMS seems to work now !
> 
> Cool. Just keep in mind you might need to do this every time you update
> 
> LMS on your machine.
> 
> Would you know whether there's a Slim/Utils/OS/Custom.pm in SSOTS? If 
> so, you might be able to tweak it to fix this issue.
It is indeed:

Code:
--------------------
    [/opt/ssods4/var/home/SqueezeboxServer/Slim] # cd Utils/OS
  [/opt/ssods4/var/home/SqueezeboxServer/Slim/Utils/OS] # ls
  Custom.pm       OSX.pm          SlimService.pm  Synology.pm     audio.inf
  Debian.pm       ReadyNAS.pm     SqueezeOS.pm    Unix.pm         audio.wav
  Linux.pm        RedHat.pm       Suse.pm         Win32.pm
  [/opt/ssods4/var/home/SqueezeboxServer/Slim/Utils/OS] # more Custom.pm 
--------------------

Custom.pm contents:

Code:
--------------------
    #
  # $Id: Custom.pm 2115 2011-09-28 22:02:24Z flip $
  #
  # SSODS et al. customisation routines for Squeezebox Server
  #
  # Copyright (c) 2010-2011 Philippe Kehl <flipflip at gmx dot net>
  #
  # Partly based on code found in Squeezebox Server Copyright 2001-2009 
Logitech.
  #
  # This program is free software; you can redistribute it and/or modify it 
under
  # the terms of the GNU General Public License version 3 as published by the
  # Free Software Foundation.
  #
  # See the documentation for details and copying conditions.
  #
  # Installation:
  # cp /opt/ssods4/share/sbs/Custom.pm \
  #    /opt/ssods4/var/home/SqueezeboxServer/Slim/Utils/OS/
  # (or via the Settings page of the SSODS web interface)
  
  package Slim::Utils::OS::Custom;
  
  use strict;                 
  
  use base qw(Slim::Utils::OS::Linux);
  
  use constant MAX_LOGSIZE => 1024*1024*1; # maximum log size: 1 MB
  
  
  sub initDetails
  {
        my $class = shift;
  
  # abort if we're not running SSODS
  # FIXME: maybe better use $Config{...}?
  return undef if ("@INC" !~ m{/opt/ssods4/lib/perl});
  
  # initialise
        $class->{osDetails} = $class->SUPER::initDetails();
  
  # set machine details
  if (-f '/etc/synoinfo.conf' || -f '/etc.defaults/synoinfo.conf')
  {
  # we have SSODS on a Synology DiskStation
  $class->{osDetails}->{osName} = 'SSODS 4.x (Synology DiskStation)';
  $class->{osDetails}->{isSSODS} = 1;
  }
  elsif (-f '/proc/tsinfo/vendor')
  {
  # we have SSOTS on a QNAP TurboStation
  $class->{osDetails}->{osName} = 'SSOTS 4.x (QNAP TurboStation)';
  $class->{osDetails}->{isSSOTS} = 1;
  }
  elsif (-f '/proc/therm-fan' || -f '/etc/gluesys/version')
  {
  # we have SSOEZ on a Xtreamer eTRAYz
  $class->{osDetails}->{osName} = 'SSOEZ 4.x (Xtreamer eTRAYz)';
  $class->{osDetails}->{isSSOEZ} = 1;
  }
  else
  {
  # we have SSOXX, which is SSODS on some unknown, generic Linux
  $class->{osDetails}->{osName} = 'SSOXX (SSODS 4.x, generic Linux)';
  }
  
        return $class->{osDetails};
  
--------------------


------------------------------------------------------------------------
karlek's Profile: http://forums.slimdevices.com/member.php?userid=64321
View this thread: http://forums.slimdevices.com/showthread.php?t=106851

_______________________________________________
Squeezecenter mailing list
Squeezecenter@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/squeezecenter

Reply via email to