Kodi Community Forum
WASAPI and decoded multi channel FLAC problem - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: General Support (https://forum.kodi.tv/forumdisplay.php?fid=111)
+---- Forum: Windows (https://forum.kodi.tv/forumdisplay.php?fid=59)
+---- Thread: WASAPI and decoded multi channel FLAC problem (/showthread.php?tid=82873)



WASAPI and decoded multi channel FLAC problem - Jeff Flowerday - 2010-10-10

I've noticed that WASAPI doesn't seem to be working with decoded multi channel flac from MKV files.

I have the default directsound bit depth and sample rate set ro 24/96 on my 5750's HDMI output. This allows me to know when WASAPI is working appropriately.

Unfortunately, my amp is alway displaying 96KHZ, even when the mkv contains flac that I know is 48KHZ. So either the flac decoder is up sampling or direct sound is taking care of the audio even when I have WASAPI configured as the output mode.

Any ideas to what's going on? Or does the LPCM decoded from FLAC not get bitstreamed?


I was running Dharma Beta 2 but just installed the latest SVN to confirm the issue still exists.


- elupus - 2010-10-10

It does not get bitstreamed as far as I know no. I suspect you need some exclusive mode for xbmc to take over the audio hw.


- Jeff Flowerday - 2010-10-10

elupus Wrote:It does not get bitstreamed as far as I know no. I suspect you need some exclusive mode for xbmc to take over the audio hw.

There aren't any receivers that I know that take multi channel flac and decode it, so I have to assume you are talking LPCM.

Bitstreaming LPCM should be the whole reason for WASAPI mode other wise it would be pointless since Directsound has always had the ability to pass AC3 and DTS to the amp unmolested.


- Jeff Flowerday - 2010-10-10

I don't know how a direct show filter could play into the the picture with XBMC but madflac decoder was. I unregistered it and then xbmc seems to started working properly as far as I can tell.

My amp is now show the appropriate sample rate for each different flac source sample rate. 96KHZ for certain blu-ray concerts and 48KHZ for everything else. So I have to assume things are working as they should.

Why would madflac mess up XBMC?


- Jeff Flowerday - 2010-10-11

And now it's not working again.


- Jeff Flowerday - 2010-10-11

Now I understand what's going on. WASAPI only works with actual flac audio files and the internal audio player. It FLAC in a mkv container, using the internal video player that doesn't do WASAPI.

Is there a plan to add this in the future?


- ashlar - 2010-10-22

http://pastebin.com/WLTPR7ft

Above a debug log of a straight HD-DVD rip of Blade Runner Director's Cut. Dolby TrueHD converted to FLAC 48KHz 5.1. Windows 7 control panel configured for 5.1 96KHz output.

Receiver reports correctly multichannel 5.1 48KHz input from GTX 460 HDMI.

With the same configuration, foobar2000 with DirectSound output plays back a stereo mp3 as 96KHz 5.1 audio.

I'd say WASAPI is working properly for DVDplayer.


- Jeff Flowerday - 2010-10-23

I'm going to have back down to "Beta 3". Currently running a newer "unsupported" build, to see if it solved some other issues.