Giter Site home page Giter Site logo

Comments (8)

lukasjapan avatar lukasjapan commented on September 12, 2024 1

I can confirm it now.

Will definitely look into this and try to fix it tonight or tomorrow.

It looks like the raw_audio function is called in an infinite loop, probably with empty data.
A simple sleep should fix this if there is no better solution.

from bt-speaker.

lukasjapan avatar lukasjapan commented on September 12, 2024

Hmmm,
maybe a first step would try to find out if the load comes from inside the C library or python.
Probably it comes from python if the load is also high when not playing audio.

Approaches I could think of are:

  • Add debug logging in code
  • Monitor the DBUS for abnormalities

Maybe its even GLib responding unnecessarily to something.

Personally I never experienced (or noticed) that issue since I use the Pi exclusively for bluetooth in my project.

from bt-speaker.

gonzotek avatar gonzotek commented on September 12, 2024

I am experiencing this as well. It seems to happen shortly after the first bluetooth disconnect after a boot; at least for me. I'm running bt-speaker on a RPi 3 using an up-to-date retropie image (installed retropie 4.2, then updated setup script and retropie packages using retropie's updater). Also using ethernet, wifi is disabled via /boot/config.txt; I am using the onboard bluetooth however.

from bt-speaker.

vctender avatar vctender commented on September 12, 2024

Restarting bt_speaker resolves the issue immediately. I can confirm that it happens after disconnecting. Nevertheless the service seems to work fine, even with high cpu usage.

from bt-speaker.

vctender avatar vctender commented on September 12, 2024

n1, will validate your changes soon. Thanks

from bt-speaker.

lukasjapan avatar lukasjapan commented on September 12, 2024

Turns out that bluez does not tell to release the filedescriptor of the audio stream on disconnect and the GObject listener went crazy.

It should be fixed now.

from bt-speaker.

gonzotek avatar gonzotek commented on September 12, 2024

Confirmed fixed for me (retropie 4.2 base image, packages all up-to-date as of 2017-07-16). Thanks!! Working great :-)

from bt-speaker.

vctender avatar vctender commented on September 12, 2024

confirmed - Thanks!

from bt-speaker.

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.