Linux Audio the way to go!? - Page 215 - diyAudio
Go Back   Home > Forums > Source & Line > PC Based

PC Based Computer music servers, crossovers, and equalization

Please consider donating to help us continue to serve you.

Ads on/off / Custom Title / More PMs / More album space / Advanced printing & mass image saving
Reply
 
Thread Tools Search this Thread
Old 22nd September 2013, 03:16 PM   #2141
phofman is offline phofman  Czech Republic
diyAudio Member
 
Join Date: Apr 2005
Location: Pilsen
Quote:
Originally Posted by soundcheck View Post

Non of your answers refers to my question btw.
Sure they do. The CPU load of resampling causes the XRUNs you are complaining about, I have experienced that many times.
  Reply With Quote
Old 23rd September 2013, 08:59 AM   #2142
phofman is offline phofman  Czech Republic
diyAudio Member
 
Join Date: Apr 2005
Location: Pilsen
Pulseaudio with LD_PRELOADing libsoxr-lsr | Blog IVITERA a.s.

Just like I said.
  Reply With Quote
Old 23rd September 2013, 09:47 AM   #2143
MrSlim is offline MrSlim  Canada
diyAudio Member
 
Join Date: Jun 2009
Location: Ottawa, Ontario
Blog Entries: 2
Quote:
Originally Posted by soundcheck View Post
No idea.



I do want to use it as generic desktop system. As a (rather) normal user.
And I'm also aware that there are applications ( also e.g. MPD ), which can
directly access Alsa.

I just wanted to use Rythmbox out of the box. Because it is well integrated into the environment. And certain plugins (e.g. coverart browser) make that
player acceptable to me. ( What I can not say about MPD)

What sucks is pulseaudio and the whole gstreamer jungle.
OK. Nothing new. We were at this point 5 years ago.

Anyhow. With the right prioritiy setting I got a rather acceptable resampling to 96khz (@23%!! CPU load on an i5) going.

Let's see, perhaps I find an answer to the "passthrough" subject, which is supposed to include automatic samplerate switching.
Instead of Ubuntu, try Lubuntu, they pulled Pulse audio out. There's a version called Lubuntu lxle that they have based on the LTS release of Ubuntu. The base Lubuntu is quite basic, but lxle is nicely featured and quite complete from a desktop application perspective. Using LXDE vs Gnome(or Unity or whatever they are calling it) improves performance on older machines....
  Reply With Quote
Old 25th September 2013, 07:40 AM   #2144
diyAudio Member
 
soundcheck's Avatar
 
Join Date: Mar 2005
Location: D
Quote:
Originally Posted by MrSlim View Post
Instead of Ubuntu, try Lubuntu, they pulled Pulse audio out. There's a version called Lubuntu lxle that they have based on the LTS release of Ubuntu. The base Lubuntu is quite basic, but lxle is nicely featured and quite complete from a desktop application perspective. Using LXDE vs Gnome(or Unity or whatever they are calling it) improves performance on older machines....
I tried Lubuntu, Kubuntu, Xubuntu, Studio, Mint, Fedora, Arch, Gentoo .....

.... to realize, that the best bet -- for my purposes -- is a basic Ubuntu along with some rather minor modifications.


What counts first of all is size in terms of market share and related to size community support.
Derivates usually fall short on support, features and show integration
issues. You'll end up spending more time on hacking then using the
system.

I have Saucy installed now and I'm quite happy.
I'm getting used to Rythmbox with the all its plugins - the cover art browser in particular. It's not perfect, but it works.

I'm running speex-5 now with pulseaudio.

I can even run Windows apps like DBpoweramp and Office with Wine1.6 nowadays.

SMPlayer is my video player of choice btw.

I use ARCH-Arm on my RPi network player btw.

Cheers
  Reply With Quote
Old 25th September 2013, 08:17 AM   #2145
diyAudio Member
 
soundcheck's Avatar
 
Join Date: Mar 2005
Location: D
Quote:
Originally Posted by phofman View Post
Yep. You said it.

Where do you put the LD_PRELOAD entry to have it applied at system start ??
  Reply With Quote
Old 25th September 2013, 08:28 AM   #2146
phofman is offline phofman  Czech Republic
diyAudio Member
 
Join Date: Apr 2005
Location: Pilsen
I did not, just tested running pulseaudio from command line. I guess it will be on each distribution different. Just search where pulseaudio server is called on your machine - either at startup scripts for system-wide or autostart when user-based. On my home mate mint it was I think in pulseaudio-kde script.

I am talking to Rob, the author of libsoxr, about the clicks. He is very helpful.
  Reply With Quote
Old 25th September 2013, 09:40 AM   #2147
diyAudio Member
 
soundcheck's Avatar
 
Join Date: Mar 2005
Location: D
Quote:
Originally Posted by phofman View Post
I did not, just tested running pulseaudio from command line. I guess it will be on each distribution different. Just search where pulseaudio server is called on your machine - either at startup scripts for system-wide or autostart when user-based. On my home mate mint it was I think in pulseaudio-kde script.

I am talking to Rob, the author of libsoxr, about the clicks. He is very helpful.
I'm trying for a while to figure out how this pulseaudio gets started.

Not any Wiki seems to be up2date.

Autostart:

/etc/xdg/autostart/pulseaudio-kde.desktop or
/etc/xdg/autostart/pulseaudio.desktop

These files call

/usr/bin/start-pulseaudio-[kde||X11]

which just seem to load some PA modules.

However. By running pactl PA seems to be started automatically.

That might explain why taking PA out of "autostart" won't stop it from autostart at boot.

Then there are SysVinit AND Upstart PA startscripts at /etc/init.d and /etc/init.
But these seem to sit idle. And will only by used if PA is uses as system wide daemon.
Currently the daemon will be started on per user basis, with the particular user ID and permission.
That's why PAM needs to be set up properly for your user to allow realtime prio and nice adjustments.
It's still not working in my case.


??? I'm kind of lost.

Last edited by soundcheck; 25th September 2013 at 09:43 AM.
  Reply With Quote
Old 25th September 2013, 03:00 PM   #2148
diyAudio Member
 
soundcheck's Avatar
 
Join Date: Mar 2005
Location: D
Just figured that pulseaudio respawns several times during boot/login.

And every time it restarts it uses a different daemon.conf and client.conf config file.

I figured that out by defining a different logfile in each of the config files.

Interesting to see is that timidity's starting up PA twice.

What a jungle.

I then removed Timidity.


Guess what:


Code:
-rw------- 1 lightdm lightdm 71262 Sep 25 17:16 pa-client-etc.log
-rw------- 1 klaus   klaus   63239 Sep 25 17:16 pa-client-home.log
-rw------- 1 lightdm lightdm     0 Sep 25 17:15 pa-daemon-etc.log
-rw------- 1 klaus   klaus       0 Sep 25 17:16 pa-daemon-home.log
Now the lightdm login manager starts a session first, probably to be able to issue the login sound. Weired.

Last edited by soundcheck; 25th September 2013 at 03:23 PM.
  Reply With Quote
Old 25th September 2013, 03:42 PM   #2149
diyAudio Member
 
soundcheck's Avatar
 
Join Date: Mar 2005
Location: D
Weired. Maybe not!?!?

Let's try to get the logic right:

There are certain system related sounds or services that require a PA instance running -- before a user logs in.
First it was Timidity, now it's lightdm, since Timidity was removed.
These services are using the generic config files under /etc/pulse and apply their own user id and permissions.


As soon as the user logs in PA needs to be restarted to load the user specific parameters and modules.
At this point PA is issuing pactl commands to load the X11 related PA modules. These pactl commands are executed by the startup script "start-pulseaudio-x11" which gets triggered from "Startup-Applications. pactl restarts automatically the daemon. Restart, because some user specific parameters have to be changed.
At this point user specfic settings will be applyied.


Another finding is that the client.conf overrules the daemon.conf settings.


Hmmh. That's exhausting. That's Linux.

Last edited by soundcheck; 25th September 2013 at 03:46 PM.
  Reply With Quote
Old 25th September 2013, 04:10 PM   #2150
diyAudio Member
 
Join Date: Nov 2010
Location: Savoie - France
Hi,

Why using pulseaudio ? It's seems that it resample everything to 48 Khz.
Another thing, I found a real improvement of the sound quality after removing pulseaudio and using ALSA with my M-Audio 1010LT card.

Just my 2 ...
  Reply With Quote

Reply


Hide this!Advertise here!
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



New To Site? Need Help?

All times are GMT. The time now is 10:14 AM.


vBulletin Optimisation provided by vB Optimise (Pro) - vBulletin Mods & Addons Copyright © 2014 DragonByte Technologies Ltd.
Copyright 1999-2014 diyAudio

Content Relevant URLs by vBSEO 3.3.2