I dislike PulseAudio intensely - it solves problems that 99% of users
don't have but makes life more complicated.

For some reason parec will not pipe its output so a quick and dirty
solution is to use "arecord" with an environment variable "PULSE_SOURCE"
but that requires a shell script as LMS syntax doesn't support
variables.

Attached are 2 files in a zip file becuase forums doesn't support the
file types as attachments,
custom-convert.conf
pulse.sh

the custom-convert.conf now calls a shell script pulse.sh instead of
parec. Also I have omitted mp3 encoding as I think it is not required.
the pulse.sh script has to be put into the WaveInput Bin directory with
same owner/group as resot of plugin but also it must be made executable
(i.e. chmod +x pulse.sh) 

1. Stop LMS
2. Download attached zip file and unzip - 2 files pulse.sh &
custom-convert.conf
3. Copy pulse.sh into WaveInput/Bin directory.  Change owner & group to
same as plugin and make file executable.
4. Copy custom-convert.conf into the WaveInput plugin directory
5. Start LMS
6. Check Filetype for WaveInput are "pulse.sh" and "pulse.sh/flac".  If
they are disabled then pulse.sh is not exectuable or accessible by LMS -
fix and restart LMS if necesssary
7. Try playing wavin Fvaorite

By default LMS will choose Flac - this will typically have a 3-5 sec
delay.
If you disable Flac WaveInput FileType (i.e. only PCM is enabled) - the
delay will be around 1 sec but will be a heavy network load if sending
stream to many synced players .

Increasing sampling rate (e.g. 44100 to 9600) for Flac stream may reduce
delay as delay is caused by time to compress dependent on compression
CPU time and rate of data collected.


+-------------------------------------------------------------------+
|Filename: wavinpulseaudio.zip                                      |
|Download: http://forums.slimdevices.com/attachment.php?attachmentid=27679|
+-------------------------------------------------------------------+

------------------------------------------------------------------------
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