Files
WinDurango/dlls/winrt_x/Implementation/Microsoft.Xbox.GameChat.ChatManagerSettings.cpp
Serenity ea9a2facc0 Refactor logging and update function naming conventions
This commit standardizes the logging mechanism by replacing calls to `Logger::NotImplemented()` with the new `LOG_NOTIMPLEMENTED()` macro across multiple files in the Microsoft Xbox Services and Kinect libraries.

Function names in the debug logging macros have been updated to reflect the new naming conventions, changing `ExtractProjectName` to `RetrieveProjectName` and `ExtractFunctionName` to `RetrieveFunctionName`.

Additionally, the `Logger` class has been enhanced to include structured logging capabilities with various log levels and context information for better traceability.

New properties and methods have been introduced in several classes, while many implementations still remain to be completed. Overall, these changes improve maintainability and consistency in the logging framework across the Xbox development environment.
2025-06-03 03:59:32 -04:00

146 lines
4.9 KiB
C++

#include "pch.h"
#include "Microsoft.Xbox.GameChat.ChatManagerSettings.h"
#include "Microsoft.Xbox.GameChat.ChatManagerSettings.g.cpp"
namespace winrt::Microsoft::Xbox::GameChat::implementation
{
uint32_t ChatManagerSettings::AudioThreadPeriodInMilliseconds()
{
LOG_NOTIMPLEMENTED(); throw hresult_not_implemented();
}
void ChatManagerSettings::AudioThreadPeriodInMilliseconds(uint32_t value)
{
LOG_NOTIMPLEMENTED(); throw hresult_not_implemented();
}
uint32_t ChatManagerSettings::AudioThreadAffinityMask()
{
LOG_NOTIMPLEMENTED(); throw hresult_not_implemented();
}
void ChatManagerSettings::AudioThreadAffinityMask(uint32_t value)
{
LOG_NOTIMPLEMENTED(); throw hresult_not_implemented();
}
int32_t ChatManagerSettings::AudioThreadPriority()
{
LOG_NOTIMPLEMENTED(); throw hresult_not_implemented();
}
void ChatManagerSettings::AudioThreadPriority(int32_t value)
{
LOG_NOTIMPLEMENTED(); throw hresult_not_implemented();
}
winrt::Windows::Xbox::Chat::EncodingQuality ChatManagerSettings::AudioEncodingQuality()
{
LOG_NOTIMPLEMENTED(); throw hresult_not_implemented();
}
void ChatManagerSettings::AudioEncodingQuality(winrt::Windows::Xbox::Chat::EncodingQuality const& value)
{
LOG_NOTIMPLEMENTED(); throw hresult_not_implemented();
}
uint32_t ChatManagerSettings::JitterBufferMaxPackets()
{
LOG_NOTIMPLEMENTED(); throw hresult_not_implemented();
}
void ChatManagerSettings::JitterBufferMaxPackets(uint32_t value)
{
LOG_NOTIMPLEMENTED(); throw hresult_not_implemented();
}
uint32_t ChatManagerSettings::JitterBufferLowestNeededPacketCount()
{
LOG_NOTIMPLEMENTED(); throw hresult_not_implemented();
}
void ChatManagerSettings::JitterBufferLowestNeededPacketCount(uint32_t value)
{
LOG_NOTIMPLEMENTED(); throw hresult_not_implemented();
}
uint32_t ChatManagerSettings::JitterBufferPacketsBeforeRelaxingNeeded()
{
LOG_NOTIMPLEMENTED(); throw hresult_not_implemented();
}
void ChatManagerSettings::JitterBufferPacketsBeforeRelaxingNeeded(uint32_t value)
{
LOG_NOTIMPLEMENTED(); throw hresult_not_implemented();
}
bool ChatManagerSettings::PerformanceCountersEnabled()
{
LOG_NOTIMPLEMENTED(); throw hresult_not_implemented();
}
void ChatManagerSettings::PerformanceCountersEnabled(bool value)
{
LOG_NOTIMPLEMENTED(); throw hresult_not_implemented();
}
bool m_CombineCaptureBuffersIntoSinglePacket;
bool ChatManagerSettings::CombineCaptureBuffersIntoSinglePacket()
{
return m_CombineCaptureBuffersIntoSinglePacket;
}
void ChatManagerSettings::CombineCaptureBuffersIntoSinglePacket(bool value)
{
m_CombineCaptureBuffersIntoSinglePacket = value;
}
bool m_UseKinectAsCaptureSource;
bool ChatManagerSettings::UseKinectAsCaptureSource()
{
return m_UseKinectAsCaptureSource;
}
void ChatManagerSettings::UseKinectAsCaptureSource(bool value)
{
m_UseKinectAsCaptureSource = value;
}
bool m_PreEncodeCallbackEnabled;
bool ChatManagerSettings::PreEncodeCallbackEnabled()
{
return m_PreEncodeCallbackEnabled;
}
void ChatManagerSettings::PreEncodeCallbackEnabled(bool value)
{
m_PreEncodeCallbackEnabled = value;
}
bool m_PostDecodeCallbackEnabled;
bool ChatManagerSettings::PostDecodeCallbackEnabled()
{
return m_PostDecodeCallbackEnabled;
}
void ChatManagerSettings::PostDecodeCallbackEnabled(bool value)
{
m_PostDecodeCallbackEnabled = value;
}
winrt::Microsoft::Xbox::GameChat::GameChatDiagnosticsTraceLevel ChatManagerSettings::DiagnosticsTraceLevel()
{
LOG_NOTIMPLEMENTED(); throw hresult_not_implemented();
}
void ChatManagerSettings::DiagnosticsTraceLevel(winrt::Microsoft::Xbox::GameChat::GameChatDiagnosticsTraceLevel const& value)
{
LOG_NOTIMPLEMENTED(); throw hresult_not_implemented();
}
bool ChatManagerSettings::AutoMuteBadReputationUsers()
{
LOG_NOTIMPLEMENTED(); throw hresult_not_implemented();
}
void ChatManagerSettings::AutoMuteBadReputationUsers(bool value)
{
LOG_NOTIMPLEMENTED(); throw hresult_not_implemented();
}
uint32_t ChatManagerSettings::SessionStateUpdateRequestCoalesceDuration()
{
LOG_NOTIMPLEMENTED(); throw hresult_not_implemented();
}
void ChatManagerSettings::SessionStateUpdateRequestCoalesceDuration(uint32_t value)
{
LOG_NOTIMPLEMENTED(); throw hresult_not_implemented();
}
uint32_t ChatManagerSettings::MuteUserIfReputationIsBadCoalesceDuration()
{
LOG_NOTIMPLEMENTED(); throw hresult_not_implemented();
}
void ChatManagerSettings::MuteUserIfReputationIsBadCoalesceDuration(uint32_t value)
{
LOG_NOTIMPLEMENTED(); throw hresult_not_implemented();
}
}