Giter Club home page Giter Club logo

Comments (8)

duncanthrax avatar duncanthrax commented on July 29, 2024

Yes, compiling should work out of the box if you have the necessary dev packages installed with your toolchain (pulse or alsa development packages).

from scream.

daiaji avatar daiaji commented on July 29, 2024

@duncanthrax While the process of building the kernel is quite painful
But I try to build receivers and report after I've built the kernel and rootfs.

from scream.

daiaji avatar daiaji commented on July 29, 2024

@duncanthrax
I don't know what to do.

aarch64-linux-gnu-gcc -Wall -o scream-pulse scream-pulse.c -lpulse-simple -lpulse
/usr/lib/gcc-cross/aarch64-linux-gnu/8/../../../../aarch64-linux-gnu/bin/ld: cannot find -lpulse-simple
/usr/lib/gcc-cross/aarch64-linux-gnu/8/../../../../aarch64-linux-gnu/bin/ld: cannot find -lpulse
collect2: error: ld returned 1 exit status
make: *** [Makefile:5: scream-pulse] Error 1

from scream.

duncanthrax avatar duncanthrax commented on July 29, 2024

You need to provide the pulseaudio static lib (libpulse.a and libpulse-simple.a) files. Those also need to be built for the same arch (ARM).

If you already have those, GCC might not find them. Add an -L parameter to the gcc call in the Makefile to point to their location.

from scream.

daiaji avatar daiaji commented on July 29, 2024

@duncanthrax In fact, I gave up cross compilation.
It doesn't seem so slow to compile Receivers on ARM devices.
After installing pulseaudio, scream-pulse seems to be able to run.
But then I found that my kernel didn't seem to have sound card drivers, so I had to rebuild the kernel.😰

from scream.

daiaji avatar daiaji commented on July 29, 2024

@duncanthrax After I gave up compiling scream-pulse and compiling scream-alsa,
Scream-alsa works very well.
But I found out at the same time, if so, how can my Host play the audio?
But at least scream-alsa can work on Ubuntu arm64.
Thank you😋

from scream.

daiaji avatar daiaji commented on July 29, 2024

@duncanthrax

Home directory not accessible: Permission denied
ALSA lib pcm.c:8306:(snd_pcm_recover) underrun occurred
ALSA lib pcm.c:8306:(snd_pcm_recover) underrun occurred
ALSA lib pcm.c:8306:(snd_pcm_recover) underrun occurred
ALSA lib pcm.c:8306:(snd_pcm_recover) underrun occurred
ALSA lib pcm.c:8306:(snd_pcm_recover) underrun occurred
ALSA lib pcm.c:8306:(snd_pcm_recover) underrun occurred
ALSA lib pcm.c:8306:(snd_pcm_recover) underrun occurred
ALSA lib pcm.c:8306:(snd_pcm_recover) underrun occurred
ALSA lib pcm.c:8306:(snd_pcm_recover) underrun occurred
ALSA lib pcm.c:8306:(snd_pcm_recover) underrun occurred
ALSA lib pcm.c:8306:(snd_pcm_recover) underrun occurred
ALSA lib pcm.c:8306:(snd_pcm_recover) underrun occurred
ALSA lib pcm.c:8306:(snd_pcm_recover) underrun occurred
ALSA lib pcm.c:8306:(snd_pcm_recover) underrun occurred
ALSA lib pcm.c:8306:(snd_pcm_recover) underrun occurred
ALSA lib pcm.c:8306:(snd_pcm_recover) underrun occurred
ALSA lib pcm.c:8306:(snd_pcm_recover) underrun occurred
ALSA lib pcm.c:8306:(snd_pcm_recover) underrun occurred
ALSA lib pcm.c:8306:(snd_pcm_recover) underrun occurred
ALSA lib pcm.c:8306:(snd_pcm_recover) underrun occurred
ALSA lib pcm.c:8306:(snd_pcm_recover) underrun occurred
Writing again after short write 212 < 245
ALSA lib pcm.c:8306:(snd_pcm_recover) underrun occurred
ALSA lib pcm.c:8306:(snd_pcm_recover) underrun occurred
ALSA lib pcm.c:8306:(snd_pcm_recover) underrun occurred
Writing again after short write 166 < 245
ALSA lib pcm.c:8306:(snd_pcm_recover) underrun occurred
ALSA lib pcm.c:8306:(snd_pcm_recover) underrun occurred
ALSA lib pcm.c:8306:(snd_pcm_recover) underrun occurred
ALSA lib pcm.c:8306:(snd_pcm_recover) underrun occurred
ALSA lib pcm.c:8306:(snd_pcm_recover) underrun occurred
Writing again after short write 166 < 245
ALSA lib pcm.c:8306:(snd_pcm_recover) underrun occurred

Receivers throws up some mistakes.
But Receivers is working.

from scream.

aventrax avatar aventrax commented on July 29, 2024

Solution: Use stream receiver in raw mode outputting to snapserver's pipe, then on the raspberry use just snapclient. No underrun! Moreover you can connect many snapclient you want and enjoying multiroom synced audio.

from scream.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.