Windows.Xbox.Chat progress (Minecraft now boots!)

This commit is contained in:
Rodrigo Todescatto
2026-03-10 15:24:17 -03:00
parent da68dcac7e
commit c42c4c36c5
5 changed files with 29 additions and 50 deletions

View File

@@ -1,21 +1,19 @@
#include "Windows.Xbox.Chat.ChatDecoder.h"
#include "WinDurangoWinRT.h"
#include "Windows.Xbox.Chat.Format.h"
namespace winrt::Windows::Xbox::Chat::implementation
{
winrt::Windows::Xbox::Chat::Format ChatDecoder::Format()
{
p_wd->log.Warn("WinDurango::WinRT::Windows::Xbox::Chat::ChatDecoder", "Unimplemented: Format");
throw hresult_not_implemented();
return winrt::make<implementation::Format>();
}
void ChatDecoder::Decode(winrt::Windows::Storage::Streams::IBuffer const& buffer, winrt::Windows::Storage::Streams::IBuffer& decodedBuffer)
{
p_wd->log.Warn("WinDurango::WinRT::Windows::Xbox::Chat::ChatDecoder", "Unimplemented: Decode");
throw hresult_not_implemented();
}
int32_t ChatDecoder::IsDataInFlight()
{
p_wd->log.Warn("WinDurango::WinRT::Windows::Xbox::Chat::ChatDecoder", "Unimplemented: IsDataInFlight");
throw hresult_not_implemented();
return 0;
}
}

View File

@@ -5,22 +5,18 @@ namespace winrt::Windows::Xbox::Chat::implementation
{
ChatEncoder::ChatEncoder(winrt::Windows::Xbox::Chat::Format const& format, winrt::Windows::Xbox::Chat::EncodingQuality const& quality)
{
p_wd->log.Warn("WinDurango::WinRT::Windows::Xbox::Chat::ChatEncoder", "Unimplemented: ChatEncoder");
throw hresult_not_implemented();
}
void ChatEncoder::Encode(winrt::Windows::Storage::Streams::IBuffer const& buffer, winrt::Windows::Storage::Streams::IBuffer& encodedBuffer)
{
p_wd->log.Warn("WinDurango::WinRT::Windows::Xbox::Chat::ChatEncoder", "Unimplemented: Encode");
throw hresult_not_implemented();
}
int32_t ChatEncoder::IsDataInFlight()
{
p_wd->log.Warn("WinDurango::WinRT::Windows::Xbox::Chat::ChatEncoder", "Unimplemented: IsDataInFlight");
throw hresult_not_implemented();
return 0;
}
void ChatEncoder::Encode(winrt::Windows::Storage::Streams::IBuffer const& buffer, winrt::Windows::Xbox::Chat::ChatBufferSource const& source, winrt::Windows::Storage::Streams::IBuffer& encodedBuffer, winrt::Windows::Xbox::Chat::ChatBufferSource& encodedSource)
{
p_wd->log.Warn("WinDurango::WinRT::Windows::Xbox::Chat::ChatEncoder", "Unimplemented: Encode");
throw hresult_not_implemented();
}
}

View File

@@ -5,8 +5,7 @@ namespace winrt::Windows::Xbox::Chat::implementation
{
ChatParticipant::ChatParticipant(winrt::Windows::Xbox::System::User const& user)
{
p_wd->log.Warn("WinDurango::WinRT::Windows::Xbox::Chat::ChatParticipant", "Unimplemented: ChatParticipant");
throw hresult_not_implemented();
}
winrt::Windows::Xbox::System::User ChatParticipant::User()
{
@@ -31,7 +30,6 @@ namespace winrt::Windows::Xbox::Chat::implementation
}
void ChatParticipant::SynthesizeTextMessageAsAudioBuffers(hstring const& message, winrt::Windows::Media::SpeechSynthesis::VoiceInformation const& voice)
{
p_wd->log.Warn("WinDurango::WinRT::Windows::Xbox::Chat::ChatParticipant", "Unimplemented: SynthesizeTextMessageAsAudioBuffers");
throw hresult_not_implemented();
}
}

View File

@@ -1,62 +1,54 @@
#include "Windows.Xbox.Chat.ChatSession.h"
#include "Windows.Xbox.Chat.ChatEncoder.h"
#include "Windows.Xbox.Chat.ChatDecoder.h"
#include "Windows.Xbox.Chat.Format.h"
#include "WinDurangoWinRT.h"
namespace winrt::Windows::Xbox::Chat::implementation
{
hstring ChatCaptureSource::Id()
{
p_wd->log.Warn("WinDurango::WinRT::Windows::Xbox::Chat::ChatCaptureSource", "Unimplemented: Id");
throw hresult_not_implemented();
return L"";
}
winrt::Windows::Xbox::Chat::Format ChatCaptureSource::Format()
{
p_wd->log.Warn("WinDurango::WinRT::Windows::Xbox::Chat::ChatCaptureSource", "Unimplemented: Format");
throw hresult_not_implemented();
return winrt::make<implementation::Format>();
}
void ChatCaptureSource::GetNextBuffer(winrt::Windows::Storage::Streams::IBuffer& buffer, winrt::Windows::Xbox::Chat::CaptureBufferStatus& status)
{
p_wd->log.Warn("WinDurango::WinRT::Windows::Xbox::Chat::ChatCaptureSource", "Unimplemented: GetNextBuffer");
throw hresult_not_implemented();
}
void ChatCaptureSource::GetNextBufferWithCorrelationInfo(winrt::Windows::Storage::Streams::IBuffer& buffer, winrt::Windows::Foundation::Collections::IVectorView<winrt::Windows::Xbox::Chat::ChatUserCorrelation>& info, winrt::Windows::Xbox::Chat::CaptureBufferStatus& status)
{
p_wd->log.Warn("WinDurango::WinRT::Windows::Xbox::Chat::ChatCaptureSource", "Unimplemented: GetNextBufferWithCorrelationInfo");
throw hresult_not_implemented();
}
winrt::Windows::Xbox::Chat::ChatRestriction ChatCaptureSource::GetRelationship(hstring const& targetId)
{
p_wd->log.Warn("WinDurango::WinRT::Windows::Xbox::Chat::ChatCaptureSource", "Unimplemented: GetRelationship");
throw hresult_not_implemented();
return ChatRestriction::None;
}
hstring ChatRenderTarget::Id()
{
p_wd->log.Warn("WinDurango::WinRT::Windows::Xbox::Chat::ChatRenderTarget", "Unimplemented: Id");
throw hresult_not_implemented();
return L"";
}
winrt::Windows::Xbox::Chat::ChatRestriction ChatRenderTarget::GetRelationship(hstring const& source)
{
p_wd->log.Warn("WinDurango::WinRT::Windows::Xbox::Chat::ChatRenderTarget", "Unimplemented: GetRelationship");
throw hresult_not_implemented();
return ChatRestriction::None;
}
void ChatRenderTarget::BeginMix()
{
p_wd->log.Warn("WinDurango::WinRT::Windows::Xbox::Chat::ChatRenderTarget", "Unimplemented: BeginMix");
throw hresult_not_implemented();
}
winrt::Windows::Xbox::Chat::ChatRestriction ChatRenderTarget::AddMixBuffer(hstring const& source, winrt::Windows::Xbox::Chat::Format const& format, winrt::Windows::Storage::Streams::IBuffer const& buffer)
{
p_wd->log.Warn("WinDurango::WinRT::Windows::Xbox::Chat::ChatRenderTarget", "Unimplemented: AddMixBuffer");
throw hresult_not_implemented();
return ChatRestriction::None;
}
void ChatRenderTarget::ResetMix()
{
p_wd->log.Warn("WinDurango::WinRT::Windows::Xbox::Chat::ChatRenderTarget", "Unimplemented: ResetMix");
throw hresult_not_implemented();
}
void ChatRenderTarget::SubmitMix()
{
p_wd->log.Warn("WinDurango::WinRT::Windows::Xbox::Chat::ChatRenderTarget", "Unimplemented: SubmitMix");
throw hresult_not_implemented();
}
winrt::Windows::Foundation::Collections::IVectorView<winrt::Windows::Xbox::Chat::ChatCaptureSource> ChatSessionState::CaptureSources()
{
@@ -70,13 +62,11 @@ namespace winrt::Windows::Xbox::Chat::implementation
}
ChatSession::ChatSession(winrt::Windows::Foundation::TimeSpan const& time, winrt::Windows::Xbox::Chat::ChatFeatures const& enabledFeatures)
{
p_wd->log.Warn("WinDurango::WinRT::Windows::Xbox::Chat::ChatSession", "Unimplemented: ChatSession(TimeSpan, ...)");
throw hresult_not_implemented();
}
ChatSession::ChatSession(winrt::Windows::Foundation::TimeSpan const& time, uint32_t processorAffinity, winrt::Windows::Xbox::Chat::ChatFeatures const& enabledFeatures)
{
p_wd->log.Warn("WinDurango::WinRT::Windows::Xbox::Chat::ChatSession", "Unimplemented: ChatSession(TimeSpan, uint32_t, ...)");
throw hresult_not_implemented();
}
winrt::Windows::Foundation::Collections::IVectorView<winrt::Windows::Xbox::Chat::ChatChannel> ChatSession::Channels()
{
@@ -106,8 +96,7 @@ namespace winrt::Windows::Xbox::Chat::implementation
}
winrt::Windows::Xbox::Chat::ChatEncoder ChatSession::CreateTranscribingEncoder(winrt::Windows::Xbox::Chat::ChatParticipant const& participant, winrt::Windows::Xbox::Chat::Format const& format, winrt::Windows::Xbox::Chat::EncodingQuality const& quality)
{
p_wd->log.Warn("WinDurango::WinRT::Windows::Xbox::Chat::ChatSession", "Unimplemented: CreateTranscribingEncoder");
throw hresult_not_implemented();
return winrt::make<implementation::ChatEncoder>();
}
winrt::event_token ChatSession::TranscribedTextReadyEvent(winrt::Windows::Xbox::Chat::ChatParticipantTranscribedTextReadyHandler const& handler)
{
@@ -119,8 +108,7 @@ namespace winrt::Windows::Xbox::Chat::implementation
}
winrt::Windows::Xbox::Chat::ChatRestriction ChatSession::GetParticipantRelationship(winrt::Windows::Xbox::Chat::ChatParticipant const& source, winrt::Windows::Xbox::Chat::ChatParticipant const& target)
{
p_wd->log.Warn("WinDurango::WinRT::Windows::Xbox::Chat::ChatSession", "Unimplemented: GetParticipantRelationship");
throw hresult_not_implemented();
return ChatRestriction::None;
}
winrt::Windows::Xbox::System::AudioDeviceInfo ChatSession::GetDedicatedSynthesisDevice(winrt::Windows::Xbox::Chat::ChatParticipant const& participant)
{

View File

@@ -13,8 +13,7 @@ namespace winrt::Windows::Xbox::Chat::implementation
}
uint32_t Format::Bitrate()
{
p_wd->log.Warn("WinDurango::WinRT::Windows::Xbox::Chat::Format", "Unimplemented: Bitrate");
throw hresult_not_implemented();
return 320;
}
uint32_t Format::ChannelCount()
{