2020-04-17, 15:32
OK it's perfectly clear. Thanks !
Quote:We finally got KODI downloaded and configured.
As you say, it doesn't change the S/R on the 2d box.
It does change the sample rate on the 3d box.
I turned on advanced logging and looked at the log and it appears to me that they are doing the Sample Rate change wrong.
There is a CoreAudio property called NominalSampleRate that is what should be used for changing the device sample rate.
They appear to be trying to manually change the device stream format, and it looks like they are coming up with an unsupported configuration for the 2d device. Now, it is likely that our reported configuration (which is actually correct) is leading to their code building an invalid configuration for the stream format. But that's why CA hosts shouldn't try to manipulate the stream format directly -- it is too easy to mess it up. If they use the NominalSampleRate property, CA will manage the stream format for them and the sample rate will change.
In any case, I stand by my statement; they have a bug.
If any app can change the sample rate on the device using CoreAudio (and many can), then the driver is implemented correctly. Its up to the apps to implement their side of the API correctly.
(2020-04-17, 12:14)jjd-uk Wrote:Hello jjd-uk,(2020-04-15, 17:14)badsheep Wrote: Here is the log.
I noticed that when I choose "Optimized" my music is speed up.
From 44,1 to 48 I guess, to avoid the upsampling...
But speeding the music is neither what I want
Unfortunately the logging for audio when using the player for music is not very clear. Could you enable debug logging again but this time open the Context menu with a track selected then select Play using.. and you will see 2 options PAPlayer (Default) and VideoPlayer, select VideoPlayer as this has more verbose audio stream logging and see if you get the same result, if you do then can you provide the log file.
(2020-04-18, 22:03)badsheep Wrote: This story makes me notice another bug with my soundcard !
After the tests of sample rate I did, I let the "Best Match" settings checked (usually I have "Fixed" selected).
And while I was watching TV, I noticed the sound was dropping every like 2-3 seconds.
I switched back to "Fixed" : the sound is OK.
Strange no ? And the source and my card are both at 48kHz.
I'll provide a log when I can.
I begin to think that Kodi doesn't speak the right way to my soundcard
My bad, see below.
Quote:Line 3703 confirms Kodi detects track as 44.1 khz and Line 3728 show we open audio output with 44.1 khz so this confirms the upsampling is being done outside of Kodi
(2020-04-20, 11:55)jjd-uk Wrote: Line 3703 confirms Kodi detects track as 44.1 khz and Line 3728 show we open audio output with 44.1 khz so this confirms the upsampling is being done outside of Kodi. Perhaps if @fritsch has a moment he can confirm he reads the log https://paste.kodi.tv/inijofoqoc.kodi the same as me.
As the internal soundcard works why do you not use this? frankly the Metric Halo device is a professional product that is completely overkill for a Kodi installation and is perhaps aim at a more professional orientated suite of software.