Giter Club home page Giter Club logo

Comments (6)

RobertBiehl avatar RobertBiehl commented on August 18, 2024

Is this really an issue with raspberry pi? I read that the raspberry pi has FPU and raspbian supports it.
I definitly have a performance problem. But I wonder if it's because of a lame encoder that has not been compiled with FPU support.

http://raspberrypi.stackexchange.com/questions/545/does-the-raspberry-pi-have-hardware-floating-point-support

from nicercast.

stephen avatar stephen commented on August 18, 2024

Looks like you're on to something. Seems that the node library is compiled with the arm_nofpu optimization (thereby using soft floats..), but could use the fpu if compiled with generic_fpu. (see http://www.raspberrypi.org/forums/viewtopic.php?t=10656&p=150921).

See node-lame: https://github.com/TooTallNate/node-lame/blob/391ec00c8e25f2b86de338341184e8cd12abb5e8/deps/mpg123/mpg123.gyp#L60

Do you have experience with node-gyp? Could we add another target specifically for the rpi in node-lame?

Also see configure options:
https://github.com/TooTallNate/node-lame/blob/master/deps/mpg123/configure#L14046
https://github.com/TooTallNate/node-lame/blob/391ec00c8e25f2b86de338341184e8cd12abb5e8/deps/mpg123/mpg123.gyp#L108

from nicercast.

RobertBiehl avatar RobertBiehl commented on August 18, 2024

No I didn't work with gyp yet. It should be possible to check for different arm versions there, like armv6 in the raspberry pi's case. The problem might be that some armv6 CPUs might miss an FPU unit. I could not find information on if that's possible. Maybe there is an architecture identifier like "armv6-vfp" to match against, which would make defining a target easier?

from nicercast.

stephen avatar stephen commented on August 18, 2024

See TooTallNate/node-lame#30

from nicercast.

m1dst avatar m1dst commented on August 18, 2024

Have you considered NOT encoding the audio to MP3 at all? From what I understand the AirPlay codec is ALAC. The Sonos system can play ALAC 16/44.1 so perhaps this would be better for RPi to just pipe it straight out? I understand the bandwidth would be slightly more but it could create a stable platform for those not worried about the bandwidth. Perhaps I've missed something along the way so would be interested in your thoughts.

from nicercast.

stephen avatar stephen commented on August 18, 2024

Closing for now. Currently looking into direct ALAC support (stephen/nodetunes#1).

Another workaround here is to overclock the rpi (stephen/airsonos#42).

from nicercast.

Related Issues (7)

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.