Comments (7)
/etc/asound.conf
pcm.!default {
type hw
card 1
}
ctl.!default {
type hw
card 1
}
from apulse.
As error message said,
Apulse does no resampling or format conversion, leaving that task to ALSA plugins. Ensure that selected device is capable of playing a particular sample format at a particular rate. They have to be supported by either hardware directly, or by "plug" and "dmix" ALSA plugins which will perform required conversions on CPU.
In your case, custom ALSA configuration wires "default" device to the hw device without plug and dmix plugins. So when apulse, which is an ALSA client, tries to open "default" device with some parameters, hardware driver says that these parameters are not supported. It's typical for the simple embedded audio adapters to support, say, only 48000 Hz. It relies on the host software to resample audio to fit supported sampling rates. Same with sample formats. As far as I know, Firefox likes to output FLOAT32LE, while simple audio adapters usually support only 16-bit signed (S16LE).
As for the fixing it, you have several options:
- use default ALSA configuration. It uses
dmix
andplug
since about 2005. Most probably your ALSA version is recent enough to have them enabled by default; - enhance your custom configuration to use
dmix
andplug
for mixing and resampling; - use a hardware audio adapter which supports wide range of sampling rates and formats.
Any of the three should suffice.
from apulse.
Thank you very much for your help!
Could resolve this by deleting /etc/asound.conf
and then fixing the sound card order so that the right soundcard gets loaded into alsa.
https://wiki.archlinux.org/index.php/Advanced_Linux_Sound_Architecture#Set_the_default_sound_card
from apulse.
then there was no need for apulse for my use-case anymore.
however, there are some flatpak apps that seem to rely on pulseaudio.
could i use apulse for those aswell?
from apulse.
flatpak apps
could i use apulse for those aswell?
As far as I know, it's not possible. Flatpak and other containerized app technologies tend to isolate apps. Moreover, they run in a different file tree, so even if one manages to pass LD_LIBRARY_PATH into the container itself, there are no libpulse.so.0
from apulse
to load, since that library is in the host filesystem.
However, if one bundles apulse libraries when application is packaged, it may work. But then, if you are building application anyway, why not to enable ALSA in it directly?
from apulse.
I am also having an issue. When I updated from Firefox 60.x-esr to 68.6.0-esr, Firefox is not detecting the sound input device. This worked fine before updating. Did not update anything else. Sound input device is still detected by Audacity and works.
When I tried https://www.onlinemictest.com/ Firefox did not ask me for permission to access the input device. Also, the test claimed there was no input device.
A Mozilla person says this must be an incompatibility in apulse.
Is there a way to make this work or do I need to install PulseAudio?
Installed apulse is 0.1.12
Audio device is Device-1: Intel 82801I HD Audio driver: snd_hda_intel
Linux kernel is 4.9.193-amd64-smp
from apulse.
When I updated from Firefox 60.x-esr to 68.6.0-esr, Firefox is not detecting the sound input device.
I've just tried to run Firefox 68.6.0-esr (binary from https://ftp.mozilla.org) with apulse 0.1.12, and found no issues with audio playback. Microphone on https://www.onlinemictest.com/ is also detected, and I can clearly see waveforms appear in the sample box when I speak to the microphone. So, can't reproduce.
Is there a way to make this work or do I need to install PulseAudio?
Sorry, can't say anything definite about that. If PulseAudio works, why not?
from apulse.
Related Issues (20)
- Error when starting application with apulse HOT 1
- Firejailed browsers no sound (Firefox & Brave) HOT 1
- Firefox 71.0b6 no sound HOT 2
- No alsa sound in FF 69 HOT 1
- Capture PCM output of apulse HOT 2
- No sound with FF 73 (working with FF 72) HOT 1
- Apulse does not work with alsa ioplug HOT 1
- chromium/brave error in trisquel etiona/ubuntu 18.0 HOT 9
- patchelf not working HOT 2
- fluidsynth 2.1.3 can't find pa_threaded_mainloop_get_api symbol HOT 2
- viber complains for old version of PulseAudio server HOT 1
- Fix building with PulseAudio 13
- Audio lags behind by .5 seconds on Factorio HOT 3
- Capture device leaves browser with locks held
- apulse should not even exist HOT 2
- Is this project unmaintained? HOT 3
- apulse + firefox reader view causes speech to fail for other applications
- What is more secure, apulse or PipeWire? HOT 2
- Telegram doesn't work 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 apulse.