Posts: 3,885
Joined: Mar 2006
Reputation:
161
Considering the delay in Eden... is there any chance for this to be included?
For troubleshooting and bug reporting please make sure you
read this first (usually it's enough to follow instructions in the second post).
Posts: 1,124
Joined: Jan 2011
Reputation:
9
T800
Posting Freak
Posts: 1,124
I'm sure there will be builds of final eden with this patch so it doesn't really matter if it doesn't make it.
Posts: 112
Joined: Nov 2010
Reputation:
3
How does this patch deal with multichannel FLAC files ? Ive tried using the wasapi audio output, but my multich flac files are still being output as 2 ch LPCM (Im presuming because my windows mixer is set to 2ch). Whilst I could change it to 7 channels, this still means that some of my channels will be silent if my flac files are anything but 7 channels.
The audioengine build had an "exclusive" mode which (I believe) bypasses the windows mixer. Any way to achieve the same here ?
Thanks - and absolutely brilliant patch. Completely unexpected.
Posts: 3,025
Joined: Sep 2011
Reputation:
255
DDDamian
Team-XBMC Developer
Posts: 3,025
Wow - a flurry is right! Just to address a few items I read through in no particular order, maybe as a primer:
Testing this without the bitstreaming aspects is a bit of a moot point. XBMC already decodes TrueHD to PCM at 16bit. This patch is for straight passthrough of TrueHD and >core-DTS. There is no decoding of DTS-MA to PCM, only the core DTS.
TrueHD *can* run up to 24/192 8-channel. In reality it seldom has this amount of information in it.
In either case there are still limitations of 16bits in the base ffmpeg code and further along.
WASAPI is not the same as the audio driver. Windows users have two choices regardless of their driver - WASAPI and DirectSound. DirectSound handles Windows mixing/resampling. When you talk to DirectSound it tells you what sample rate it is running at, as set in your audio settings, and it remixes everything to that forrmat. When you talk to WASAPI you tell it what to output, and skip the resampling. If this doesn't match your Windows settings you override them. You are negotiating with the audio driver for the best format it can handle, ideally your source format. This can be to the exclusion of all other apps seeking audio output (Exclusive mode) or at a compromise format (Shared mode).
The purest audio output is going to be in WASAPI exclsive mode - you bypass the Windows mixer and any resampling/mixing. Most modern audio hardware will handle the source format whether it's 2ch 16/44.1 or 8ch 24/192. While in this mode no other system sounds can play - only XBMC streams.
Even in this mode there are two choices - timed or event-driven. In timed mode the app has to present new data before the buffer runs dry using delays. In event-driven mode Windows calls you back to let you know it needs new data.
With this patch there are still the 16-bit limitations and timed polling, which AE does improve upon, but obviously is still a WIP.
Hope the little primer helps!
System: XBMC HTPC with HDMI WASAPI & AudioEngine - Denon AVR-3808CI - Denon DVD-5900 Universal Player - Denon DCM-27 CD-Changer
- Sony BDP-S580 Blu-Ray - X-Box 360 - Android tablet wireless remote - 7.1 Streem/Axiom/Velodyne Surround System
If I have been able to help feel free to add to my reputation +/- below - thanks!