2017-02-08, 20:56
Thanks ARACNOZ! And thank you especially for including the ability to set/reset Formats tab for LAV Audio and Video!
Unfortunately I am still having an issue with Kodi not able to reinitialize WASAPI exclusive mode after I play a video that uses FFDShow and ArcSoft Audio Renderer as extra filters. It seems to be only when I use ffdshow to bitstream that the Audio Engine can't reinitialize WASAPI exclusive mode. If I drive Arcsoft Audio Render with the internal LAV Audio filter, I maintain sound, I just can't bitstream so that my receiver recognizes the stream as TrueHD or HDMA. FFDShow is the only method I have been able to find that allows me to bitstream TrueHD and HDMA so that my receiver detects the stream correctly. Probably because I have the ASUS Xonar HDAV1.3 Slim.
First initialization:
Attempt to initialize after I have played and stopped a successfully HDMA bitstreaming video:
At this point, audio no longer works in Kodi and it must be restarted to regain audio.
Is it possible that DSPlayer is not shutting down the extra filters correctly, specifically FFDShow, and it is not allowing WASAPI to close properly thus the CAESinkWASAPI::InitializeExclusive: Failed to initialize WASAPI in exclusive mode -2004287478 - (AUDCLNT_E_DEVICE_IN_USE).?
My next step is to try to setup the system use Media Rules for Filter Management and see if there is any difference in performance.
Doug
Unfortunately I am still having an issue with Kodi not able to reinitialize WASAPI exclusive mode after I play a video that uses FFDShow and ArcSoft Audio Renderer as extra filters. It seems to be only when I use ffdshow to bitstream that the Audio Engine can't reinitialize WASAPI exclusive mode. If I drive Arcsoft Audio Render with the internal LAV Audio filter, I maintain sound, I just can't bitstream so that my receiver recognizes the stream as TrueHD or HDMA. FFDShow is the only method I have been able to find that allows me to bitstream TrueHD and HDMA so that my receiver detects the stream correctly. Probably because I have the ASUS Xonar HDAV1.3 Slim.
First initialization:
Code:
08:01:20.743 T:7552 INFO: CActiveAESink::OpenSink - initialize sink
08:01:20.743 T:7552 DEBUG: CActiveAESink::OpenSink - trying to open device WASAPI:{E225C9B5-C50B-42F3-945C-1E4E00F98C73}
08:01:20.743 T:7552 DEBUG: CAESinkWASAPI::InitializeExclusive: IsFormatSupported failed (AUDCLNT_E_UNSUPPORTED_FORMAT) - trying to find a compatible format
08:01:20.753 T:7552 INFO: CAESinkWASAPI::InitializeExclusive: WASAPI Exclusive Mode Sink Initialized using: AE_FMT_S24NE3, 44100, 2
08:01:20.753 T:7552 DEBUG: CActiveAESink::OpenSink - WASAPI Initialized:
08:01:20.753 T:7552 DEBUG: Output Device : SPDIF - S/PDIF Pass-through Device (ASUS Xonar HDAV 1.3 Slim Audio Device)
08:01:20.753 T:7552 DEBUG: Sample Rate : 44100
08:01:20.753 T:7552 DEBUG: Sample Format : AE_FMT_S24NE3
08:01:20.753 T:7552 DEBUG: Channel Count : 2
08:01:20.753 T:7552 DEBUG: Channel Layout: FL,FR
08:01:20.753 T:7552 DEBUG: Frames : 2205
08:01:20.753 T:7552 DEBUG: Frame Size : 6
Attempt to initialize after I have played and stopped a successfully HDMA bitstreaming video:
Code:
08:02:06.342 T:7552 INFO: CActiveAESink::OpenSink - initialize sink
08:02:06.342 T:7552 DEBUG: CActiveAESink::OpenSink - trying to open device WASAPI:{E225C9B5-C50B-42F3-945C-1E4E00F98C73}
08:02:06.342 T:7552 DEBUG: CAESinkWASAPI::InitializeExclusive: IsFormatSupported failed (AUDCLNT_E_UNSUPPORTED_FORMAT) - trying to find a compatible format
08:02:06.415 T:7552 ERROR: CAESinkWASAPI::InitializeExclusive: Failed to initialize WASAPI in exclusive mode -2004287478 - (AUDCLNT_E_DEVICE_IN_USE).
08:02:06.415 T:7552 DEBUG: Sample Rate : 44100
08:02:06.415 T:7552 DEBUG: Sample Format : AE_FMT_S24NE3
08:02:06.415 T:7552 DEBUG: Bits Per Sample : 24
08:02:06.415 T:7552 DEBUG: Valid Bits/Samp : 24
08:02:06.415 T:7552 DEBUG: Channel Count : 2
08:02:06.415 T:7552 DEBUG: Block Align : 6
08:02:06.415 T:7552 DEBUG: Avg. Bytes Sec : 264600
08:02:06.415 T:7552 DEBUG: Samples/Block : 24
08:02:06.415 T:7552 DEBUG: Format cBSize : 22
08:02:06.415 T:7552 DEBUG: Channel Layout : FL,FR
08:02:06.415 T:7552 DEBUG: Enc. Channels : 2
08:02:06.415 T:7552 DEBUG: Enc. Samples/Sec: 44100
08:02:06.415 T:7552 DEBUG: Channel Mask : 3
08:02:06.415 T:7552 DEBUG: Periodicty : 499998
08:02:06.415 T:7552 INFO: CAESinkWASAPI::Initialize: Could not Initialize Exclusive with that format
08:02:06.415 T:7552 ERROR: CAESinkWASAPI::Initialize: WASAPI initialization failed.
Is it possible that DSPlayer is not shutting down the extra filters correctly, specifically FFDShow, and it is not allowing WASAPI to close properly thus the CAESinkWASAPI::InitializeExclusive: Failed to initialize WASAPI in exclusive mode -2004287478 - (AUDCLNT_E_DEVICE_IN_USE).?
My next step is to try to setup the system use Media Rules for Filter Management and see if there is any difference in performance.
Doug