Comments (8)
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.
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.
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.
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.
n1, will validate your changes soon. Thanks
from bt-speaker.
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.
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.
confirmed - Thanks!
from bt-speaker.
Related Issues (20)
- Hooks don't fire HOT 2
- Not able to connect
- Volume Control Inconsistent
- Display track metadata HOT 2
- Jumps to full volume when using volume control HOT 1
- Crashes on reconnect after going out and back in to coverage
- Ways to reduce latency HOT 3
- Play Soundeffects while Bluetoothmusic plays HOT 2
- too much underrun on raspbian buster HOT 1
- Service running but not Discoverable HOT 1
- Quits working after reboot HOT 1
- Bluez Media Api Support
- Broken under Raspbian / Raspberry Pi OS HOT 13
- Installation aborts - python3-alsaaudio not found HOT 1
- Volume control on windows jumps to 100 after connecting to pi
- Issues while using infrared with piGPIO
- Connects as intended, no sound
- Cannot set/control headphones with amixer to set them as default
- DbusException complains about missing attribute
- `python-gobject` no longer available on newer version of Debian
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bt-speaker.