Posts: 4
Joined: Apr 2014
Reputation:
0
thank you very much for your time.
I forgot to mention that I tried to set the default to 48000 and the alternative to 44100, but xbmc still resampled audio to 44100.
I'm going to try your patch asap.
Any chance this will be merged in the Gotham branch?
Posts: 23,259
Joined: Aug 2011
Reputation:
1,073
fritsch
Team-Kodi Developer
Posts: 23,259
2014-04-05, 14:44
(This post was last modified: 2014-04-05, 17:26 by fritsch.)
Did it work as you expected it to do?
Edit: I went back into the PA irc channel and asked what to do. They said: Just send whatever you have, so I reverted that "samplerate change" behaviour and everything is as it was before. Will be merged into gotham branch when one of the RMs picks it up. It's already in master.
First decide what functions / features you expect from a system. Then decide for the hardware. Don't waste your money on crap.
Posts: 4
Joined: Apr 2014
Reputation:
0
Hello,
No, it did not resolve the problem, resampling to 44100 still occurs.
I´ve seen your patch in mater, I'm going to try it.
thanks
Posts: 23,259
Joined: Aug 2011
Reputation:
1,073
fritsch
Team-Kodi Developer
Posts: 23,259
2014-04-05, 17:34
(This post was last modified: 2014-04-05, 17:35 by fritsch.)
When pulse resamples out of xbmc, then probably your PA is busy with other streams, that run in 44.1 khz. I checked that on my setup and it worked as it should.
I have daemon.conf set to:
default-sample-rate = 44100
alternate-sample-rate = 48000
and it worked okayish.
Btw. with my last patch commited - I will send out whatever samplerate I get. You can verify that with xbmc.log - if PA does something else after that - I cannot influence that.
Be sure to use the master branch, it's not yet picked.
First decide what functions / features you expect from a system. Then decide for the hardware. Don't waste your money on crap.
Posts: 4
Joined: Apr 2014
Reputation:
0
I tried this latest patch and it works perfectly for me. thank you!
Also I think resampling was done by xbmc and not PA. I'm sure no other streams locked PA to 44100.
bye
Posts: 23,259
Joined: Aug 2011
Reputation:
1,073
fritsch
Team-Kodi Developer
Posts: 23,259
It depends on your settings. If you set xbmc to fixed with samplerate xy - xbmc will only output that sample rate. If you select best match, xbmc will (after the changes I pushed before) keep the sample rate of the input file - for pulse to whatever do with it.
After the streams leaves xbmc - we have no single influence on the sample rate.
First decide what functions / features you expect from a system. Then decide for the hardware. Don't waste your money on crap.
Posts: 26,215
Joined: Oct 2003
Reputation:
187
fritsch: off topic, but why is enalble passthrough anything other than a default settings level??
Posts: 23,259
Joined: Aug 2011
Reputation:
1,073
fritsch
Team-Kodi Developer
Posts: 23,259
2014-05-26, 07:28
(This post was last modified: 2014-05-26, 07:28 by fritsch.)
Cause a whole lot of users simply do not know what passthrough is. In the past we always found a lot of them, that just enabled everything - cause "yeah I have a core i7 - it must do dts-hd on my desktop speakers ...".
Currently we try to open the default device (still in passthrough mode) when opening the device fails. We could change the fallback to open in 2 channel non passthrough mode and change the settings level to default. Btw. by default we also don't show HW Acceleration menu.
But that's nothing we could not change. Original intention was: xbmc should be able to play something without the need to (mis)configure anything.
First decide what functions / features you expect from a system. Then decide for the hardware. Don't waste your money on crap.
Posts: 178
Joined: Oct 2012
Reputation:
5
AE_SINK=ALSA xbmc works for me every time. It is not ideal to start xbmc from the terminal but I have leaned to live with it. Gotta have those HD audio formats, you know?