fix: fixed errors

This commit is contained in:
CT5
2026-03-10 16:53:29 +11:00
parent 9d7d2c2c1b
commit da68dcac7e
8 changed files with 20 additions and 20 deletions

View File

@@ -108,7 +108,7 @@ namespace Windows.Xbox.Chat
[interface_name("IChatDecoder", 3165955b-adcf-4239-9e63-07b2e9533bfd)]
{
Format Format { get; };
Windows.Storage.Streams.IBuffer Decode(Windows.Storage.Streams.IBuffer buffer);
void Decode(Windows.Storage.Streams.IBuffer buffer, out Windows.Storage.Streams.IBuffer decodedBuffer);
}
[interface_name("IChatDecoder2", 4d519838-b712-42b0-a3c5-5658954fa76a)]
@@ -127,7 +127,7 @@ namespace Windows.Xbox.Chat
[interface_name("IChatEncoder", ed67b7a3-3721-47ff-b506-7056a7966b09)]
{
Windows.Storage.Streams.IBuffer Encode(Windows.Storage.Streams.IBuffer buffer);
void Encode(Windows.Storage.Streams.IBuffer buffer, out Windows.Storage.Streams.IBuffer encodedBuffer);
}
[interface_name("IChatEncoder2", 25ce9936-2db9-4ce5-be78-5ab4f25aba86)]
@@ -167,8 +167,8 @@ namespace Windows.Xbox.Chat
ChatSession();
[constructor_name("IChatSessionFactory", 53cb6065-c211-4b21-a3ef-cd544d22aba1)]
{
ChatSession(Windows.Foundation.TimeSpan time, ChatFeatures enabledFeatures, ChatSession session);
ChatSession(Windows.Foundation.TimeSpan time, UInt32 processorAffinity, ChatFeatures enabledFeatures, ChatSession session);
ChatSession(Windows.Foundation.TimeSpan time, ChatFeatures enabledFeatures);
ChatSession(Windows.Foundation.TimeSpan time, UInt32 processorAffinity, ChatFeatures enabledFeatures);
}
[interface_name("IChatSession", 9af8480a-16a5-4905-ac0a-5514f3427893)]
@@ -220,11 +220,11 @@ namespace Windows.Xbox.Chat
runtimeclass Format
{
Format();
UInt32 BitsPerSample { get; set; };
UInt32 BitsPerSample { set; get; };
UInt32 Bitrate { get; };
UInt32 ChannelCount { get; set; };
UInt32 SampleRate { get; set; };
Guid Subtype { get; set; };
UInt32 ChannelCount { set; get; };
UInt32 SampleRate { set; get; };
Guid Subtype { set; get; };
}
[interface_name("IChatUserCorrelation", 48e51c40-0eeb-426b-b44a-858cfd4c3e6c)]

View File

@@ -8,7 +8,7 @@ namespace winrt::Windows::Xbox::Chat::implementation
ChatDecoder() = default;
winrt::Windows::Xbox::Chat::Format Format();
winrt::Windows::Storage::Streams::IBuffer Decode(winrt::Windows::Storage::Streams::IBuffer const& buffer);
void Decode(winrt::Windows::Storage::Streams::IBuffer const& buffer, winrt::Windows::Storage::Streams::IBuffer& decodedBuffer);
int32_t IsDataInFlight();
};
}

View File

@@ -8,7 +8,7 @@ namespace winrt::Windows::Xbox::Chat::implementation
ChatEncoder() = default;
ChatEncoder(winrt::Windows::Xbox::Chat::Format const& format, winrt::Windows::Xbox::Chat::EncodingQuality const& quality);
winrt::Windows::Storage::Streams::IBuffer Encode(winrt::Windows::Storage::Streams::IBuffer const& buffer);
void Encode(winrt::Windows::Storage::Streams::IBuffer const& buffer, winrt::Windows::Storage::Streams::IBuffer& encodedBuffer);
int32_t IsDataInFlight();
void 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);
};

View File

@@ -42,8 +42,8 @@ namespace winrt::Windows::Xbox::Chat::implementation
{
ChatSession() = default;
ChatSession(winrt::Windows::Foundation::TimeSpan const& time, winrt::Windows::Xbox::Chat::ChatFeatures const& enabledFeatures, winrt::Windows::Xbox::Chat::ChatSession const& session);
ChatSession(winrt::Windows::Foundation::TimeSpan const& time, uint32_t processorAffinity, winrt::Windows::Xbox::Chat::ChatFeatures const& enabledFeatures, winrt::Windows::Xbox::Chat::ChatSession const& session);
ChatSession(winrt::Windows::Foundation::TimeSpan const& time, winrt::Windows::Xbox::Chat::ChatFeatures const& enabledFeatures);
ChatSession(winrt::Windows::Foundation::TimeSpan const& time, uint32_t processorAffinity, winrt::Windows::Xbox::Chat::ChatFeatures const& enabledFeatures);
winrt::Windows::Foundation::Collections::IVectorView<winrt::Windows::Xbox::Chat::ChatChannel> Channels();
winrt::event_token StateChangedEvent(winrt::Windows::Xbox::Chat::ChatSessionStateChangedHandler const& handler);
void StateChangedEvent(winrt::event_token const& token) noexcept;

View File

@@ -7,15 +7,15 @@ namespace winrt::Windows::Xbox::Chat::implementation
{
Format() = default;
uint32_t BitsPerSample();
void BitsPerSample(uint32_t value);
uint32_t BitsPerSample();
uint32_t Bitrate();
uint32_t ChannelCount();
void ChannelCount(uint32_t value);
uint32_t SampleRate();
uint32_t ChannelCount();
void SampleRate(uint32_t value);
winrt::guid Subtype();
uint32_t SampleRate();
void Subtype(winrt::guid const& value);
winrt::guid Subtype();
private:
uint32_t bitsPerSample;
uint32_t channelCount;

View File

@@ -8,7 +8,7 @@ namespace winrt::Windows::Xbox::Chat::implementation
p_wd->log.Warn("WinDurango::WinRT::Windows::Xbox::Chat::ChatDecoder", "Unimplemented: Format");
throw hresult_not_implemented();
}
winrt::Windows::Storage::Streams::IBuffer ChatDecoder::Decode(winrt::Windows::Storage::Streams::IBuffer const& buffer)
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();

View File

@@ -8,7 +8,7 @@ namespace winrt::Windows::Xbox::Chat::implementation
p_wd->log.Warn("WinDurango::WinRT::Windows::Xbox::Chat::ChatEncoder", "Unimplemented: ChatEncoder");
throw hresult_not_implemented();
}
winrt::Windows::Storage::Streams::IBuffer ChatEncoder::Encode(winrt::Windows::Storage::Streams::IBuffer const& buffer)
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();

View File

@@ -68,12 +68,12 @@ namespace winrt::Windows::Xbox::Chat::implementation
p_wd->log.Warn("WinDurango::WinRT::Windows::Xbox::Chat::ChatSessionState", "Unimplemented: RenderTargets");
throw hresult_not_implemented();
}
ChatSession::ChatSession(winrt::Windows::Foundation::TimeSpan const& time, winrt::Windows::Xbox::Chat::ChatFeatures const& enabledFeatures, winrt::Windows::Xbox::Chat::ChatSession const& session)
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, winrt::Windows::Xbox::Chat::ChatSession const& session)
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();