bc-nero wrote: 
> 
> @bpa
> 
> this one is working great: "alsa_input.pci-0000_00_1b.0.analog-stereo"

I assume this means you were able to record audio into a file and play
it back OK.

Now to modify LMS to use parec (which is PulaseAudio record) instead of
the default arecord (which is ALSA record)

1. Locate the Wavinput plugin - it will be installed in a Cache
directory ending with the following.
*Cache/InstalledPlugins/Plugins/WaveInput* .  You can find location of
the Cache folder/directory from the WebUI Settings/Info page
2. Stop LMS
3. Backup the custom-convert.conf file in the Plugins/WaveInput
directory
4. Edit the custom-convert.conf file to look like the following - make
sure you use a tab not spaces before the "[parec]" and "# R"

Code:
--------------------
    
  #
  # wavin 
  #
  wavin pcm * * 
        # R
        [parec] --file-format=raw --format=s16le --rate=44100 --channels=2 -d 
$FILE$
  wavin mp3 * *
        # RB:{BITRATE=-B %B}
        [parec] --file-format=wav --format=s16le -d $FILE$ | [lame] --silent -q 
$QUALITY$ -v $BITRATE$ - -
  wavin flc * * 
        # R
        [parec] --file-format=wav --format=s16le -d $FILE$ | [flac] -cs 
--totally-silent --compression-level-0 -
  
  
--------------------

5. Save the changes and make sure the owner and group of
custom-convert.conf is the same as all other files in the WaveInput
directory
6. Now you need to make sure the userid which runs LMS has permission to
use PulseAudio and access Audio hardware.  This is done by adding the
userid which runs LMS (usually squeezeboxserver but check) to the groups
pulse, pulse-access and audio.  The following command should work

Code:
--------------------
    
  sudo usermod -aG audio squeezeboxserver
  sudo usermod -aG pulse squeezeboxserver
  sudo usermod -aG pulse-access squeezeboxserver
  
--------------------

7. Start LMS and check that WaveInput is installed OK (i.e. WebUI
Setting/Advanced/FileTypes and look at WaveInput entries - should all be
valid and have parec) 
8.  Create a Favorite in LMS for the input device (i.e. in the URL box
put *wavin:alsa_input.pci-0000_00_1b.0.analog-stereo*  )
9. Apply test music to Line-in and test new Favorite


------------------------------------------------------------------------
bpa's Profile: http://forums.slimdevices.com/member.php?userid=1806
View this thread: http://forums.slimdevices.com/showthread.php?t=110736

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

Reply via email to