Re: [SlimDevices: Unix] piCorePlayer 8.0.0 - Bluetooth Discussion

2021-12-27 Thread CLiu

paul- wrote: 
> Well that is an issue, Bluetooth doesn’t output 32bit samples.  Why
> doesn’t your device handle 16bit samples.
> 
> 
> EDIT:
> 
> Ideally, you figure out why your DAC does not support S16_LE, otherwise
> we can use ALSA to do the conversion for you.  I am by far an alsa
> configuration expert, but I think this will work.  I tired this with my
> card, and when I checked the hw params, it showed the DAC was opened in
> 32bit, vs 16bit.
> 
> edit the file /etc/asound.conf   near the top of the file.  Add this
> > 
Code:

  >   > 
  > pcm.mydevice {
  > type hw
  > card "AUDIO"
  > device 0
  > }
  > 
  > pcm.upsample {
  > type plug
  > slave {
  > pcm "mydevice"
  > format S32_LE
  > }
  > }
  > 
  > ctl.upsample {
  > type hw
  > card "AUDIO"
  > }
  > 

> > 
> 
> Then in the output field, you need to use
> > 
Code:

  >   > 
  > plug:upsample
  > 

> > 
> 
> This will slightly increase the audio delay, as alsa has an extra step
> to upsample to 32bit.   Also, make sure you run a pcp backup after
> changing the file to backup your changes...and make notes
> somewhere, as there some web pages or update processes that could
> overwrite asound.conf.

Wow.after adding the upsample output there's sound coming out!
Really big thanks to you Paul. Next I will have to explore why the dac
refuses to accept S16_LE (the manufacturer says on its website that it
supports bit depth of 1-32 on usb interface, which does not seem to be
true). But out of curiosity, what's the difference between this scenario
and Squeezelite handling 16bit flac/wav files from redbook CDs? I can
play these files without any problems with squeezelite. Does this mean
that Squeezelite somehow does upsampling to 32bits before sending the
data to the dac? Can't we add an option somewhere and do the same as
what Squeezelite does with bluetooth? 

Best regards
Liu



CLiu's Profile: http://forums.slimdevices.com/member.php?userid=72392
View this thread: http://forums.slimdevices.com/showthread.php?t=114834

___
unix mailing list
unix@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/unix


Re: [SlimDevices: Unix] VU Meter Not Working

2021-12-27 Thread bpa


Instead of amixer - IIRC the ALSA control can be accessed using the -V
and -U option on the squeezelite command line



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

___
unix mailing list
unix@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/unix


Re: [SlimDevices: Unix] Start/restart squeezelite when plug-in USB dac

2021-12-27 Thread uudruid74


Man in a van wrote: 
> Well I'm just a civilian who happens to be strolling by.  :rolleyes:
> 
> I find there is, actually, a lot of humour I don't understand, and
> hence, do not find funny  :confused:
> 
> It must be an age thing and being a computer numpty :confused:
> 
> But thanks for the assurances :)
> 
> ronnie
LOL.  I didn't mean "funny" as humorous, but in a "peculiar" sense. 
Only the "predictive/AI" thinks there is something wrong but all the
empirical checks are clean.  That tells me the AI is more artificial
than it is intelligent!



uudruid74's Profile: http://forums.slimdevices.com/member.php?userid=72371
View this thread: http://forums.slimdevices.com/showthread.php?t=113661

___
unix mailing list
unix@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/unix


Re: [SlimDevices: Unix] Start/restart squeezelite when plug-in USB dac

2021-12-27 Thread Man in a van


uudruid74 wrote: 
> Just ran it from their website to see what you are talking about.  
> 
> Hastebin is a widely used site similar to pastebin.  It has no malicious
> code and VirusTotal doesn't flag it at all.  Its just a paste of the
> code "hastebin  
> The eddon.systems link is only flagged by Bfore.AI PreCrime module of
> VirusTotal.  It attempts to detect what domains might contain malicious
> code in the future based on the domain.  They are trying hard to sell
> their service and its bullshit.  The eddon.systems domain is mine (not
> used in forever) and I used to work in cyber security.   There is
> nothing to worry about from either link.  If someone wants me to post
> 300 lines here I can, or shoot me your email and I can email it, *but
> seriously, don't you find it funny that NONE of the other modules
> detected anything and only the "predictive" one flagged it?*


Well I'm just a civilian who happens to be strolling by.  :rolleyes:

I find there is, actually, a lot of humour I don't understand, and
hence, do not find funny  :confused:

It must be an age thing and being a computer numpty :confused:

But thanks for the assurances :)

ronnie



Man in a van's Profile: http://forums.slimdevices.com/member.php?userid=43627
View this thread: http://forums.slimdevices.com/showthread.php?t=113661

___
unix mailing list
unix@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/unix


Re: [SlimDevices: Unix] Start/restart squeezelite when plug-in USB dac

2021-12-27 Thread uudruid74


Man in a van wrote: 
> @uudruid74
> 
> Just for info
> 
> VirusTotal flags both links as having malicious content :(
> 
> ronnie

Just ran it from their website to see what you are talking about.  

Hastebin is a widely used site similar to pastebin.  It has no malicious
code and VirusTotal doesn't flag it at all.  Its just a paste of the
code "hastebin http://forums.slimdevices.com/member.php?userid=72371
View this thread: http://forums.slimdevices.com/showthread.php?t=113661

___
unix mailing list
unix@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/unix


Re: [SlimDevices: Unix] Scan of NFS Shares not finding anything

2021-12-27 Thread paul-


I use Synology NAS with both NFS and CIFS, both work fine.   Perhaps
show us a screen shot of your network mount configuration on pCP.

Hopefully you are not confusing yourself by running LMS on both synology
and pCP.



piCorePlayer a small player for the Raspberry Pi in RAM. 
Homepage: https://www.picoreplayer.org

Please 'donate'
(https://www.paypal.com/cgi-bin/webscr?cmd=_donations=U7JHY5WYHCNRU=GB_code=USD=PP%2dDonationsBF%3abtn_donateCC_LG%2egif%3aNonHosted)
if you like the piCorePlayer

paul-'s Profile: http://forums.slimdevices.com/member.php?userid=58858
View this thread: http://forums.slimdevices.com/showthread.php?t=115625

___
unix mailing list
unix@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/unix


Re: [SlimDevices: Unix] Start/restart squeezelite when plug-in USB dac

2021-12-27 Thread Man in a van


@uudruid74

Just for info

VirusTotal flags both links as having malicious content :(

ronnie



Man in a van's Profile: http://forums.slimdevices.com/member.php?userid=43627
View this thread: http://forums.slimdevices.com/showthread.php?t=113661

___
unix mailing list
unix@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/unix


Re: [SlimDevices: Unix] Start/restart squeezelite when plug-in USB dac

2021-12-27 Thread uudruid74

sbp wrote: 
> For me the ranges is saved correctly if I add 44100-768000 in the max
> sample rate box in the UI and press The “save” button. 
> Then checking the Squeezelite command string   'more>'
> (http://192.168.0.216/cgi-bin/squeezelite.cgi?#) I have the correct
> string -o hw:CARD=sndrpihifiberry -a 80:4::1: -r 44100-768000

The config file is correct.   I believe its start-stop-daemon from
busybox stripping dashes and commas.

Here is my "metasolution" to the pluggable USB problem.   It will work
with the -C 5 and all the above.  It is a single file (but nearly 300
lines).  It suddenly started working using that method, but I was nearly
done with this.  There is a switch to completely kill squeezelite as I
was doing before.  I can now plug in a second DAC (such as with
headphones) into my Pi and the song is paused on the main DAC and starts
playing on the new one.  Pull the new one out and it starts back on the
old one.  When the DAC goes off it stays paused.  Moving the stream from
one DAC to another restarts the playlist, but doesn't if you just turn
it off.  Shouldn't be any remote code execution exploits but dug too
deep on the security.  You can blacklist an audio device(s) so it
doesn't get selected when you disconnect your DAC (use the short names
not the full names, but it does show the full name in the log output). 
Also fills in MAX_RATES in the config file and keeps it updated.  I was
going to do bit depth options too but there was some question on the
outputs (32b LE wasn't on the list, only BE - typo?) and I figured most
people leave that blank anyway.  It could be easily added though to just
update the config as devices are inserted.

'View on Pastebin' (https://hastebin.com/nexufateho)
'Download It' (http://eddon.systems/Directory.php/Download/PCP)

Anyone wanting to dig in to shell scripting should check it out for
ideas.  I kept it pretty basic since I'm not familiar with busybox ash
and normally use zsh or bash.



uudruid74's Profile: http://forums.slimdevices.com/member.php?userid=72371
View this thread: http://forums.slimdevices.com/showthread.php?t=113661

___
unix mailing list
unix@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/unix


Re: [SlimDevices: Unix] Scan of NFS Shares not finding anything

2021-12-27 Thread Michael Herger

All checkboxes are ticked:
-enabled synchronous
-Allowed access from non priv ports
-allow users to access mounted subfolders


I don't check the latter two.

What about the pCP side of things? See 
https://docs.picoreplayer.org/how-to/add_network_share/

___
unix mailing list
unix@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/unix


Re: [SlimDevices: Unix] piCorePlayer 8.0.0 - Bluetooth Discussion

2021-12-27 Thread paul-

Well that is an issue, Bluetooth doesn’t output 32bit samples.  Why
doesn’t your device handle 16bit samples.



piCorePlayer a small player for the Raspberry Pi in RAM. 
Homepage: https://www.picoreplayer.org

Please 'donate'
(https://www.paypal.com/cgi-bin/webscr?cmd=_donations=U7JHY5WYHCNRU=GB_code=USD=PP%2dDonationsBF%3abtn_donateCC_LG%2egif%3aNonHosted)
if you like the piCorePlayer

paul-'s Profile: http://forums.slimdevices.com/member.php?userid=58858
View this thread: http://forums.slimdevices.com/showthread.php?t=114834

___
unix mailing list
unix@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/unix


Re: [SlimDevices: Unix] piCorePlayer 8.0.0 - Bluetooth Discussion

2021-12-27 Thread CLiu


paul- wrote: 
> With regards to the phone, if it is not an iphone, then likely it is not
> encoding AAC properly.   I'm experimenting with allowing you to be able
> to select which codec is used(Similar to the speaker codec selection).
> 
> The laptop is using SBC,  and still exhibits a similar problem...   I'm
> streaming now using an Amazon Dot to my bluetooth pCP device, it works
> find for me there too  (Ive never seen the condition you are seeing).
> 
> Lets check something basic
> 
> from command line, what does produce.Hopefully some white noise from
> your speakers.
> 
> sudo speaker-test -D iec958:CARD=AUDIO,DEV=0 -c 2

I tried the above command, and resulted in the following:

tc@pCP:~$ sudo speaker-test -D iec958:CARD=AUDIO,DEV=0 -c 2

speaker-test 1.2.3

Playback device is iec958:CARD=AUDIO,DEV=0
Stream parameters are 48000Hz, S16_LE, 2 channels
Using 16 octaves of pink noise
Sample format not available for playback: Invalid argument
Setting of hwparams failed: Invalid argument

So I added the sample format and the result is some white noise coming
from my speakers:

tc@pCP:~$ sudo speaker-test -D iec958:CARD=AUDIO,DEV=0 -F S32_LE -c 2

speaker-test 1.2.3

Playback device is iec958:CARD=AUDIO,DEV=0
Stream parameters are 48000Hz, S32_LE, 2 channels
Using 16 octaves of pink noise
Rate set to 48000Hz (requested 48000Hz)
Buffer size range from 16 to 131072
Period size range from 8 to 65536
Using max buffer size 131072
Periods = 4
was set period_size = 32768
was set buffer_size = 131072
0 - Front Left
1 - Front Right
Time per period = 2.761540
0 - Front Left
1 - Front Right
Time per period = 5.461139
0 - Front Left
1 - Front Right
Time per period = 5.461292
0 - Front Left
1 - Front Right
Time per period = 5.461343
0 - Front Left
1 - Front Right
Time per period = 5.461200
0 - Front Left
1 - Front Right
Time per period = 5.461222
0 - Front Left
1 - Front Right
Time per period = 5.461302
0 - Front Left
1 - Front Right
Time per period = 5.461396
0 - Front Left
1 - Front Right
Time per period = 5.461009
0 - Front Left
1 - Front Right
^CTime per period = 4.949040

Best regards
Liu



CLiu's Profile: http://forums.slimdevices.com/member.php?userid=72392
View this thread: http://forums.slimdevices.com/showthread.php?t=114834

___
unix mailing list
unix@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/unix


Re: [SlimDevices: Unix] pCP updates - FULL UPDATE = Internet not accessible!!

2021-12-27 Thread zordaz


paul- wrote: 
> feel free to change the ip address that your system uses on the tweaks
> page.

I know that you can change it manually and will do, but like I said: IMO
a better default for pCP should be considered instead of changing all my
devices by hand each time after doing a full install.



*Living Room:* RPI2+HifiBerry DAC+ Pro & piCorePlayer
*Attic:* RPI2+HifiBerry DAC+ RCA & piCorePlayer
*Other rooms:* 6x SB Radio
*LMS*: Version 8.2.0 on Xubuntu 21.10

zordaz's Profile: http://forums.slimdevices.com/member.php?userid=61726
View this thread: http://forums.slimdevices.com/showthread.php?t=115616

___
unix mailing list
unix@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/unix