Comments (3)
Ha! Nevermind, managed to find it myself:
Just replaced bluetooth with bluealsa and then for the sake of convenience btheadset to default (!default actually).
Now my whole system spits out sound to my soundbar. Only issue though is the buffering being quite big. On my senheiser speakers they will play at a higher sample rate (barely noticeable, like 5-10% oversampling) so that way they ca reduce the samples in the buffer and make sure the latency is low.
Any ideas on that?
from bluez-alsa.
To be honest I have no idea what might cause oversampling. The first thing which comes to my mind is sampling frequency incompatibility. However, I can see, that in your configuration you are using plug
plugin, which should autocorrect this issue.
It is possible to detect whether this issue is caused by bluealsa, though. You have to save raw audio from ALSA PCM plugin (before it is sent to the bluealsa) and/or from the bluealsa IO thread function (assuming that SBC was selected as an audio codec, otherwise here).
After these lines, add something like:
write(f, head, len /* or "samples * 2" */); // one sample is 16 bit
and before while
or for
loop add:
int f = open("/tmp/xxx.raw", O_WRONLY|O_CREAT, 0644);
This should save all incoming PCM data. Afterward, you can play these files (providing correct sampling and number of channels).
If oversampling occurs in both cases, then it is a proof, that something is wrong with plug plugin. Oversampling in the data saved from the "bluealsa" server - definitely an issue with bluealsa :)
from bluez-alsa.
from bluez-alsa.
Related Issues (20)
- v4.1.1 fails to build on on Debian buster i386 HOT 8
- No sound from Onkyo receiver HOT 90
- Potential server lockup in PCM drain HOT 2
- Sink producing no audio with aptX codec HOT 2
- allow build with different dbus name HOT 2
- Bluealsa with Google Pixel 8 Android Version 14 (Call sounds like a robot) HOT 9
- Fedora includes a fork of libopenaptx, libfreeaptx HOT 1
- No sound on speakers with PipeWire. HOT 8
- Occasional crashes when streaming from iPhone to bluealsa HOT 10
- Buttons not working during callback recording HOT 2
- build/install: LC3Plus libraries?? HOT 2
- HSP HS profile: "arecord -d" duration is ignored HOT 1
- Routing audio to bluealsa from hw:0,1 HOT 31
- Test all deps with pkgconfig HOT 10
- arecord Unable to install hw params, record from bluetooth failed HOT 3
- Error compiling with aptx HOT 1
- Audio cut off in the beginning of the file HOT 3
- how can an SCO link be reestablished after it has been disconnected by the HF device? HOT 2
- How to pipe bluealsa PCM to fifo? HOT 18
- aplay Unable to install hw params HOT 1
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 bluez-alsa.