Posts: 1
Joined: Jan 2015
Reputation:
0
Setup your dac in alsa config (asound.conf).
Disble your dac in pulseaudio control center.
Start KODI from terminal with "AE_SINK=ALSA kodi"
In system - audio output select your dac..
Check if it is working.
Posts: 23,266
Joined: Aug 2011
Reputation:
1,074
fritsch
Team-Kodi Developer
Posts: 23,266
The OP uses OpenELEC. ALSA is used there by default and no pulseaudio is shipped.
First decide what functions / features you expect from a system. Then decide for the hardware. Don't waste your money on crap.
Posts: 15
Joined: Jan 2015
Reputation:
0
I'm also using openelec (V5.0.0) with an M-DAC (USB DAC).
I get constant pops through the audio when playing 44.1kHz/16 bit flac files and also with 96kHz/24-bit flac files.
Audio settings i've tried are:
- Audio Lab M-Dac Analog, Best Match
Result: this always gives 48kHz 24bit irrespective of the source encoding
- Audio Lab M-Dac S/PDIF, Best Match, Limit sampling to 192kHz
Result: this gives correct sample rate but is fixed at 24bit irrespective of the source encoding
Both settings give the pops.
There are plenty of forum posts about this over on openelec with no results because the response from those in the know is generally "it's not our problem, it's a Kodi problem".
It used to be that you could add a custom string to the audio settings to tell ALSA to use HW and not HWPLUG and this way the two channel FLAC was not mixed before it was sent to the audio device and everything was fine. This changed at some point when the custom string option disappeared which i'm pretty sure happened when KODI started using Audio Engine and then ActiveAE. From that point on people using USB DACs have had to downgrade back to a version that let you add a custom string.
Please note that i've only just started using Kodi so the above paragraph is what i've extracted from other people's forum posts, not my direct experience. What is my own experience is audio full of pops and no easy way to fix it.
Kodi uses PAPlayer which i'm guessing uses ActiveAE. So if my research is correct then it is ActiveAE causing the problems for those of us with USB DACs. Openelec is a read only squashfs file system so i'm going to instal Kodibuntu and see if i can use an external player that will allow me to configure how audio is output ie use only alsa.
Can anyone see an issue with solving the problem by using an external player? Can anyone suggest a better solution??
I'm a 2-channel person and there are no HDMI cables in the audio chain. As a last resort i'll use an old version of openelec, as a very last resort i'll have to go back to mediaportal/windows.....
Thanks,
Tim
Posts: 23,266
Joined: Aug 2011
Reputation:
1,074
fritsch
Team-Kodi Developer
Posts: 23,266
OE uses plain ALSA nothing else AS does kodibuntu.
First decide what functions / features you expect from a system. Then decide for the hardware. Don't waste your money on crap.
Posts: 19
Joined: Mar 2012
Reputation:
0
ian-ep
Junior Member
Posts: 19
FWIW, I'm using a Cambridge Audio StreamMagic 2.0 as a USB DAC with Kodi (Openelec 5.0). 44.1 khz FLAC files are identified correctly as 44.1 khz by the DAC - as are 48khz, 96khz and 192khz files. Whether they are 'bit perfect' I couldn't say - but they sound perfectly fine to my ear. No problems whatsoever in that respect.
I've used several other, purportedly 'bit-perfect', players through the same hardware and I certainly can't detect any difference in quality to Kodi's output. Probably because there is none!
Of course, being a little old fashioned, I rely on my ears rather than test equipment to listen to music ... ;-)
Cheers
Ian
Posts: 23,266
Joined: Aug 2011
Reputation:
1,074
fritsch
Team-Kodi Developer
Posts: 23,266
96/24 vs. 96/16 or 44.1/16 and so on ...
When you play 96/24 at 96/32 no issue at all - but your DAC's lamp won't be green.
In short: it's not only about 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: 23,266
Joined: Aug 2011
Reputation:
1,074
fritsch
Team-Kodi Developer
Posts: 23,266
Read the log of kodi, in fact there are very, very few soundcards on linux that can output S24NE, so we send S32NE there (larger format, lossless conversion from one to the other). And as our intermittant format is 32bit float anyways ...
First decide what functions / features you expect from a system. Then decide for the hardware. Don't waste your money on crap.