aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorthexai <58434170+thexai@users.noreply.github.com>2024-04-27 12:25:01 +0200
committerthexai <58434170+thexai@users.noreply.github.com>2024-09-16 17:23:13 +0200
commit78028d4ec98bc1a92249a5ba70013acc7278fe69 (patch)
tree8697f9b51008e7d07318d246a3270a7af555d5f2
parent4b4c576c5f0ac7f017a2afe306fa12ea505ddab2 (diff)
XAudio: add more debug info
-rw-r--r--xbmc/cores/AudioEngine/Sinks/AESinkXAudio.cpp16
1 files changed, 16 insertions, 0 deletions
diff --git a/xbmc/cores/AudioEngine/Sinks/AESinkXAudio.cpp b/xbmc/cores/AudioEngine/Sinks/AESinkXAudio.cpp
index 817799a4ec..1f927df412 100644
--- a/xbmc/cores/AudioEngine/Sinks/AESinkXAudio.cpp
+++ b/xbmc/cores/AudioEngine/Sinks/AESinkXAudio.cpp
@@ -797,6 +797,22 @@ initialize:
m_sourceVoice->Stop();
+ CLog::LogF(LOGDEBUG, "Initializing XAudio with the following parameters:");
+ CLog::Log(LOGDEBUG, " Audio Device : {}", KODI::PLATFORM::WINDOWS::FromW(device));
+ CLog::Log(LOGDEBUG, " Sample Rate : {}", wfxex.Format.nSamplesPerSec);
+ CLog::Log(LOGDEBUG, " Sample Format : {}", CAEUtil::DataFormatToStr(format.m_dataFormat));
+ CLog::Log(LOGDEBUG, " Bits Per Sample : {}", wfxex.Format.wBitsPerSample);
+ CLog::Log(LOGDEBUG, " Valid Bits/Samp : {}", wfxex.Samples.wValidBitsPerSample);
+ CLog::Log(LOGDEBUG, " Channel Count : {}", wfxex.Format.nChannels);
+ CLog::Log(LOGDEBUG, " Block Align : {}", wfxex.Format.nBlockAlign);
+ CLog::Log(LOGDEBUG, " Avg. Bytes Sec : {}", wfxex.Format.nAvgBytesPerSec);
+ CLog::Log(LOGDEBUG, " Samples/Block : {}", wfxex.Samples.wSamplesPerBlock);
+ CLog::Log(LOGDEBUG, " Format cBSize : {}", wfxex.Format.cbSize);
+ CLog::Log(LOGDEBUG, " Channel Layout : {}", ((std::string)format.m_channelLayout));
+ CLog::Log(LOGDEBUG, " Channel Mask : {}", wfxex.dwChannelMask);
+ CLog::Log(LOGDEBUG, " Frames : {}", format.m_frames);
+ CLog::Log(LOGDEBUG, " Frame Size : {}", format.m_frameSize);
+
return true;
}