Thorden wrote:
> This is brilliant, I am learning as I go. Thank you so much for your
> kind assistance and patience, you are a great and very helpful person!
Unfortunately for other readers of the thread - they'll find it a bit
off-piste.
> Seems we need to go with the script option, no luck with step 1 or 2.
Not quite done with step 1 or 2 as there are variations still to be
checked.
Please confirm
- you changed ownership/permission etc. of the libasound file when in
the squeezelite direcotry ?
- there was no file or directory with a name starting with "ld" in the
/etc directory
Instead of copying the libasound file the file can be soft linked to a
file in the squeezelite direcotry however it is important that it is
linked to the right file.
Are there multiple libasound files lib direcory - check by doing a "ls
-l" command as follows
Code:
--------------------
ls -l /volume1/@appstore/AudioStation/lib/libasound*
--------------------
On my linux syustem I get the following
Code:
--------------------
xxxx@minitower$ ls -l /usr/lib/x86_64-linux-gnu/libasound*
lrwxrwxrwx 1 root root 18 Dec 19 04:25
/usr/lib/x86_64-linux-gnu/libasound.so -> libasound.so.2.0.0
lrwxrwxrwx 1 root root 18 Dec 19 04:25
/usr/lib/x86_64-linux-gnu/libasound.so.2 -> libasound.so.2.0.0
-rw-r--r-- 1 root root 1075496 Dec 19 04:25
/usr/lib/x86_64-linux-gnu/libasound.so.2.0.0
--------------------
Note the current libasound is libasound.so.2.0.0 - all others link to
it. Similarly on your system you need to find the "higher" versions
(i.e. libasound.so and libasound.so.2) and replicate the files as links
in the squeezelite directory something like the following.
Code:
--------------------
ln -s /volume1/@appstore/AudioStation/lib/libasound.so.2.0.0
/volume1/@appstore/SqueezeCenter/Cache/InstalledPlugins/Plugins/LocalPlayer/Bin/squeezelite-x86-64/libasound.so
ln -s /volume1/@appstore/AudioStation/lib/libasound.so.2.0.0
/volume1/@appstore/SqueezeCenter/Cache/InstalledPlugins/Plugins/LocalPlayer/Bin/squeezelite-x86-64/libasound.so.2
--------------------
Do a "ls -l" afterwards to check the link are correct - then check if
squeezelite can be run without the LD_LIBRARY_PATH ?
I made the script work, used the wrong shell, /bin/bash instead of
/bin/sh.
> The right issue seems to be with the audio device, running the script as
> admin gives:
>
> [09:43:29.142435] stream_init:294 init stream
> [09:43:29.144389] output_init_alsa:939 init output
> [09:43:29.144496] output_init_alsa:979 requested alsa_buffer: 88200
> alsa_period: 1298 format: 16 mmap: 1
> [09:43:29.146061] ALSA _snd_pcm_hw_open:1401 Invalid value for card
> [09:43:29.146163] test_open:281 playback open error: No such file or
> directory
> [09:43:29.146189] output_init_common:384 unable to open output device:
> hw:0,0
>
Possibly.
Is there an "id" command - if so then find the following
What is the groupid of admin ? ("id -g admin")
What groups does admin belong ("id -G admin")
You did a check for the audio group a while back - Is admin in the audio
group ?
Time to check the Alsa devices permissions.
ALSA devices are in the /proc/asound directory.
If you do a "ls -l" on /proc/asound I expect there is a file called
"Streamer" whic is linked to directory card0
If you "ls -l" /proced/asound/card0 - there should be files somehting
like
Code:
--------------------
-r--r--r-- 1 root root 0 Feb 26 10:13 id
dr-xr-xr-x 3 root root 0 Feb 26 10:13 pcm0c
dr-xr-xr-x 3 root root 0 Feb 26 10:13 pcm0p
dr-xr-xr-x 3 root root 0 Feb 26 10:13 pcm1p
-r--r--r-- 1 root root 0 Feb 26 10:13 stream0
-r--r--r-- 1 root root 0 Feb 26 10:13 stream1
-r--r--r-- 1 root root 0 Feb 26 10:13 usbbus
-r--r--r-- 1 root root 0 Feb 26 10:13 usbid
-r--r--r-- 1 root root 0 Feb 26 10:13 usbmixer
--------------------
What are the permission & ownership of the card0 directory ?
What are the permission & ownership of the "pcm*" directories in the
card0 directory ?
------------------------------------------------------------------------
bpa's Profile: http://forums.slimdevices.com/member.php?userid=1806
View this thread: http://forums.slimdevices.com/showthread.php?t=97766
_______________________________________________
plugins mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/plugins