Posts: 6,810
Joined: Jul 2010
Reputation:
198
I recommend this for the next merge window. If there are no reasonable objections, we should do the switch.
Posts: 6,252
Joined: Jun 2009
Reputation:
115
da-anda
Team-Kodi Member
Posts: 6,252
2013-08-10, 20:08
(This post was last modified: 2013-08-10, 20:09 by da-anda.)
I noticed issues with stereo sound over HDMI to my TV - all it outputs is dissorted with some additional noise. This is only when using linux or WASAPI on windows - using directshow on windows music and gui sounds play fine via HDMI. Using SPDIF I didn't have any issues so far. Passthrou is working fine as well via HDMI and SPDIF from my first tests (AC3, DTS - avr is old and doesn't support HD formats).
Haven't found the time to debug the mentioned issue in detail - once I can confrim it's ActiveAE related (usually not using HDMI audio) I'll create debug logs
Posts: 414
Joined: Apr 2010
Reputation:
5
Voyager
Retired Team-Kodi Member
Posts: 414
I just discovered an issue with sync playback to display. When choosing audio clock you get heavy stuttering, e.g. When playing back 23.976 fps on a 24hz display, I got something around 5 fps... Note my audio is 5.1 digital over SPDIF. This was working fine with SoftAE.
Now switching to videoclock dupe/drop solved that issue for me.
Posts: 6,810
Joined: Jul 2010
Reputation:
198
2013-08-11, 11:54
(This post was last modified: 2013-08-11, 12:44 by FernetMenta.)
could you post a log please.
EDIT: I can't reproduce this here.
Posts: 2,745
Joined: Oct 2003
Reputation:
1
WiSo
Team-Kodi Developer
Posts: 2,745
Tested with my monitor speakers which are connected via hdmi. mp3 (stereo) and other formats worked fine with wasapi and directsound.
Posts: 6,252
Joined: Jun 2009
Reputation:
115
da-anda
Team-Kodi Member
Posts: 6,252
it just hung
what I forgot to mention before - "output stereo to all speakers" didn't work for me at all. All I got was silence, even if turned off again, regardless of directsound or wasapi. Only a restart of XBMC brought sound back
Posts: 2,745
Joined: Oct 2003
Reputation:
1
WiSo
Team-Kodi Developer
Posts: 2,745
cycling through the devices works pretty fast on my setup and without hang even during music playback (under the debugger).
Posts: 6,810
Joined: Jul 2010
Reputation:
198
CAESinkWASAPI::EnumerateDevicesEx needs rework, it thinks it supports AE_FMT_S16NEP
Posts: 2,745
Joined: Oct 2003
Reputation:
1
WiSo
Team-Kodi Developer
Posts: 2,745
The code in CAESinkWASAPI line 794 to 813 checks if the device supports the format and if yes it adds it to the list. Does make ActiveAE use of deviceInfo.m_dataFormats? afaik SoftAE didn't make any use of it and the values recorded in EnumerateDevicesEx are just to log it into the logfile.
Posts: 6,810
Joined: Jul 2010
Reputation:
198
CAESinkWASAPI::InitializeExclusive(AEAudioFormat &format) may have produced unpredictable results in case AE requested a planar format. I have created a pr for this.
Posts: 2,745
Joined: Oct 2003
Reputation:
1
WiSo
Team-Kodi Developer
Posts: 2,745
why? As far as I can see it tests what it supports? And with the changes of AEDataFormat we won't see in the log anymore if a planar format is supported by the hardware or not.