Home of the Squeezebox™ & Transporter® network music players.
Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 27
  1. #11
    OK, I Made it

    Thank you

  2. #12
    Junior Member
    Join Date
    Jul 2020
    Posts
    7

    compile squeezelite on Raspberry Pi

    I'm restarting this thread because I seem to have the same problem: squeezelite cannot resample any more, it lost the ability between builds 1166 and 1177. When I try to recompile it from scratch I get the following error:

    pi@RPi3:~/squeezelite $ make --makefile=Makefile.rpi
    g++ -Wall -fPIC -O2 -fcommon -DOPUS -DALAC -DRESAMPLE -DVISEXPORT -DDSD -DIR -DGPIO -DRPI -DUSE_SSL -DLINKALL -I./include -I./include/opus -I./include/alac -I/usr/local/include -s -march=armv6 -mfloat-abi=hard -mfpu=vfp -Wno-multichar alac_wrapper.cpp -c -o alac_wrapper.o
    alac_wrapper.cpp:23:10: fatal error: ALACDecoder.h: No such file or directory
    #include "ALACDecoder.h"
    ^~~~~~~~~~~~~~~
    compilation terminated.
    make: *** [Makefile:159: alac_wrapper.o] Error 1

    Which library am I missing? Compile worked before on my setup.

  3. #13
    Senior Member ralphy's Avatar
    Join Date
    Jan 2006
    Location
    Canada
    Posts
    2,594
    You need libalac and the only sources that I've found that work on arm cpus is https://github.com/philippe44/alac

    Or you can just delete -DALAC from Makefile.rpi and let LMS handle alac files.
    Ralphy

    1-Touch, 5-Classics, 3-Booms, 1-UE Radio
    Squeezebox client builds donations always appreciated.

  4. #14
    Junior Member
    Join Date
    Jul 2020
    Posts
    7

    Resample Problems

    Thank you very much! I managed to compile the binary but it did not solve my problem. Maybe you can help me if I explain it a little bit more in detail:

    my setup / my observations:
    - Raspberry Pi 3B running Raspbian 10
    - 2x KEF X300A with integrated USB DAC
    - command line (in rc.local): /usr/local/bin/squeezelite -p 97 -s 192.168.178.10 -o hw:CARD=Speaker,DEV=0 -n Robert -a 80:4:24_3:1 -r 96000 -u vLX -U PCM -z (build 1256)
    - distorted sound output when listening to Spotify through spotty plugin
    - perfect sound when listening to 44kHz/16bit flac input (ripped CDs)
    - perfect sound without resampling (no -u option)
    - same problem on a Raspberry Pi 2B running piCorePlayer 6.1.0 (build 1256)
    - this problem surfaced between builds 1166 and 1177, i.e. 1166 works, 1177 doesn't
    - LMS 8.0.0 and 7.9.2 both show the same problem

    - I have just found out that including "-c pcm" or "-e ogg" fixes the problem at the expense of one more conversion,
    so it seems the ogg decoder and soxr don't communicate quite right.

    Did I make a mistake or did I stumble upon a bug in squeezelite?
    Maybe you can help me.

    Thanx, Robert

  5. #15
    Senior Member ralphy's Avatar
    Join Date
    Jan 2006
    Location
    Canada
    Posts
    2,594
    Quote Originally Posted by RCJ View Post
    Thank you very much! I managed to compile the binary but it did not solve my problem. Maybe you can help me if I explain it a little bit more in detail:

    my setup / my observations:
    - Raspberry Pi 3B running Raspbian 10
    - 2x KEF X300A with integrated USB DAC
    - command line (in rc.local): /usr/local/bin/squeezelite -p 97 -s 192.168.178.10 -o hw:CARD=Speaker,DEV=0 -n Robert -a 80:4:24_3:1 -r 96000 -u vLX -U PCM -z (build 1256)
    - distorted sound output when listening to Spotify through spotty plugin
    - perfect sound when listening to 44kHz/16bit flac input (ripped CDs)
    - perfect sound without resampling (no -u option)
    - same problem on a Raspberry Pi 2B running piCorePlayer 6.1.0 (build 1256)
    - this problem surfaced between builds 1166 and 1177, i.e. 1166 works, 1177 doesn't
    - LMS 8.0.0 and 7.9.2 both show the same problem

    - I have just found out that including "-c pcm" or "-e ogg" fixes the problem at the expense of one more conversion,
    so it seems the ogg decoder and soxr don't communicate quite right.

    Did I make a mistake or did I stumble upon a bug in squeezelite?
    Maybe you can help me.

    Thanx, Robert
    There were a lots of changes to vorbis.c between r1166 and r1177. The most likely cause was enabling the FRAME_BUF by default.

    What happens if you disable it?
    Code:
    Index: vorbis.c
    ===================================================================
    --- vorbis.c	(revision 1264)
    +++ vorbis.c	(working copy)
    @@ -29,7 +29,7 @@
     *  thread has a higher priority. Using an interim buffer where vorbis decoder writes the output is not great from
     *  an efficiency (one extra memory copy) point of view, but it allows the lock to not be kept for too long
     */
    -#define FRAME_BUF 2048
    +#define FRAME_BUF 0
     
     #if BYTES_PER_FRAME == 4		
     #define ALIGN(n) 	(n)
    Ralphy

    1-Touch, 5-Classics, 3-Booms, 1-UE Radio
    Squeezebox client builds donations always appreciated.

  6. #16
    Junior Member
    Join Date
    Jul 2020
    Posts
    7
    Unfortunately, I'm still struggling with the compile!

    If you can send me the raspberry binary I can tell you right away whether the problem disappears. Sorry

  7. #17
    Senior Member ralphy's Avatar
    Join Date
    Jan 2006
    Location
    Canada
    Posts
    2,594
    Quote Originally Posted by RCJ View Post
    Unfortunately, I'm still struggling with the compile!

    If you can send me the raspberry binary I can tell you right away whether the problem disappears. Sorry
    Please give this build a try.
    Ralphy

    1-Touch, 5-Classics, 3-Booms, 1-UE Radio
    Squeezebox client builds donations always appreciated.

  8. #18
    Junior Member
    Join Date
    Jul 2020
    Posts
    7
    Your beta version requires libc >=2.29 but raspbian comes with 2.28, and I'm afraid I mess up my whole system if I install a newer libc version (for build 1256 v2.28 was fine!)

  9. #19
    Junior Member
    Join Date
    Jul 2020
    Posts
    7
    Got it to run on a piCorePlayer 6.1.0 from the command line:

    1) correct sound output without resampling
    2) same distortions when resampling, quits after a few seconds with a "Segmentation Fault"

    Sorry, Robert

  10. #20
    Senior Member ralphy's Avatar
    Join Date
    Jan 2006
    Location
    Canada
    Posts
    2,594
    Try adding -d all=debug -f squeezelite.log to the command line to create a logfile.

    Recreate the problem, zip the file and attached it to a post.

    Did the previous version segfault at the same place as well?

    I've been unable to recreate your issue as yet.
    Last edited by ralphy; 2020-07-23 at 05:46.
    Ralphy

    1-Touch, 5-Classics, 3-Booms, 1-UE Radio
    Squeezebox client builds donations always appreciated.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •