Comments (12)
Yeah, it's not utmost efficient. But what goal are you trying to achieve? Say the fastest-in-the-Universe ringbuffer will be used. What changes then?
That implementation doesn't look thread-safe. Consider two writers, both trying to fill the buffer. There is a possibility they overwrite each others data. There seems to be no apparent issues with only one reader and one writer. But current (with locks) version should not be significantly slower in that case too, while providing thread safety in case of multiple writers.
And I'll have to change project license if I use that code.
from apulse.
One of the reasons why ring buffer is used in audio is because it allows to forget about locking.
It's especially important when you feeding device with small buffer and want to achieve low latency.
Implementation from Jack is safe for 2 threads: 1 writer and 1 reader. If we are still talking about audio and you trying to feed ring buffer from multiple threads then you doing it wrong.
Ring buffer is quite standard thing, algorithm is not patented.
Guys from Jack audio also didn't invent it.
In worst case you can find other implementation which matches your license.
I'm just pointing that this type of structure not intended to be used with locking.
from apulse.
Feel free to implement any buffering scheme you like. I have no intention to perform further development.
from apulse.
Why?
It's quite nice project, and people promoting it as a replacement for geeks who don't like to use pulse audio. They using it with a new Skype versions which only support pulse audio.
As for me I'm not using linux on desktop, but I can help with my experience and advices.
from apulse.
Why?
I don't want to do it at the moment. And I don't think decision will change in a near future.
They using it with a new Skype versions which only support pulse audio.
This was the first and only real reason to develop it. (Aside from practice.) Now, when Skype works, there is nothing left to do.
from apulse.
Congrats for u work!!!!
In my case is an must to have this wrapper because with pulseaudio skype work really badly.
Thanks!!
P.S. i see that sometimes, when skype start first, then chrome not work on youtube. After quit skype, logout and login again everything work well. I don't know, i will test more.
from apulse.
i see that sometimes, when skype start first, then chrome not work on youtube
@vlad2005, you probably use hw:0,0
or something similar as output device. If so, first application will grab output device exclusively. You can use plughw
-type devices to make ALSA convert sample rates and mix sound streams for you. Then multiple applications can output audio simultaneously.
from apulse.
I try right now command like this:
apulse skype plughw:0,0
and seem to work. Is this right command?
from apulse.
Is this right command?
No, you use environment variables to select devices. Something like that:
APULSE_CAPTURE_DEVICE=plughw:0,0 APULSE_PLAYBACK_DEVICE=plughw:0,0 apulse skype
Your command only passes parameter to skype itself, and it apparently just ignores that.
I'm not good at configuring audio devices, default configurations always worked well for me. If you want detailed instructions, start with http://www.alsa-project.org/main/index.php/Asoundrc
from apulse.
Ok, thanks!
In fact is specified in documentation! :)
from apulse.
I'm happy!!!! For the first time i was able to use skype with ubuntu 14.04 without pulseuadio in real conversation. Until now, with pulseaudio i have bad audio, unusable.
Now, i save on cloud apulse and skype 4.3 for future! :)
Thanks again!
P.S. will be great for community if u have time to create an ppa for this wonderfull wrapper. Many people are scarried about compiling in linux.
from apulse.
will be great for community if u have time to create an ppa for this wonderfull wrapper. Many people are scarried about compiling in linux.
Use distribution, where it is packed already, e.g. Gentoo. ;-)
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
- apulse with firefox 68.6.esr (devuan) HOT 7
- 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.