diff --git a/idl/Windows.Xbox.Chat.idl b/idl/Windows.Xbox.Chat.idl index e726fdd..998f0d7 100644 --- a/idl/Windows.Xbox.Chat.idl +++ b/idl/Windows.Xbox.Chat.idl @@ -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)] diff --git a/projects/WinDurango.WinRT/include/WinDurango.WinRT/Windows/Xbox/Chat/Windows.Xbox.Chat.ChatDecoder.h b/projects/WinDurango.WinRT/include/WinDurango.WinRT/Windows/Xbox/Chat/Windows.Xbox.Chat.ChatDecoder.h index d0c8f2a..b9fb9b4 100644 --- a/projects/WinDurango.WinRT/include/WinDurango.WinRT/Windows/Xbox/Chat/Windows.Xbox.Chat.ChatDecoder.h +++ b/projects/WinDurango.WinRT/include/WinDurango.WinRT/Windows/Xbox/Chat/Windows.Xbox.Chat.ChatDecoder.h @@ -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(); }; } diff --git a/projects/WinDurango.WinRT/include/WinDurango.WinRT/Windows/Xbox/Chat/Windows.Xbox.Chat.ChatEncoder.h b/projects/WinDurango.WinRT/include/WinDurango.WinRT/Windows/Xbox/Chat/Windows.Xbox.Chat.ChatEncoder.h index b1cc4b4..0057e1b 100644 --- a/projects/WinDurango.WinRT/include/WinDurango.WinRT/Windows/Xbox/Chat/Windows.Xbox.Chat.ChatEncoder.h +++ b/projects/WinDurango.WinRT/include/WinDurango.WinRT/Windows/Xbox/Chat/Windows.Xbox.Chat.ChatEncoder.h @@ -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); }; diff --git a/projects/WinDurango.WinRT/include/WinDurango.WinRT/Windows/Xbox/Chat/Windows.Xbox.Chat.ChatSession.h b/projects/WinDurango.WinRT/include/WinDurango.WinRT/Windows/Xbox/Chat/Windows.Xbox.Chat.ChatSession.h index e806145..e1d1e6c 100644 --- a/projects/WinDurango.WinRT/include/WinDurango.WinRT/Windows/Xbox/Chat/Windows.Xbox.Chat.ChatSession.h +++ b/projects/WinDurango.WinRT/include/WinDurango.WinRT/Windows/Xbox/Chat/Windows.Xbox.Chat.ChatSession.h @@ -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 Channels(); winrt::event_token StateChangedEvent(winrt::Windows::Xbox::Chat::ChatSessionStateChangedHandler const& handler); void StateChangedEvent(winrt::event_token const& token) noexcept; diff --git a/projects/WinDurango.WinRT/include/WinDurango.WinRT/Windows/Xbox/Chat/Windows.Xbox.Chat.Format.h b/projects/WinDurango.WinRT/include/WinDurango.WinRT/Windows/Xbox/Chat/Windows.Xbox.Chat.Format.h index 9b1ca65..a7ad6e5 100644 --- a/projects/WinDurango.WinRT/include/WinDurango.WinRT/Windows/Xbox/Chat/Windows.Xbox.Chat.Format.h +++ b/projects/WinDurango.WinRT/include/WinDurango.WinRT/Windows/Xbox/Chat/Windows.Xbox.Chat.Format.h @@ -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; diff --git a/projects/WinDurango.WinRT/src/Windows/Xbox/Chat/Windows.Xbox.Chat.ChatDecoder.cpp b/projects/WinDurango.WinRT/src/Windows/Xbox/Chat/Windows.Xbox.Chat.ChatDecoder.cpp index d15430d..51125cd 100644 --- a/projects/WinDurango.WinRT/src/Windows/Xbox/Chat/Windows.Xbox.Chat.ChatDecoder.cpp +++ b/projects/WinDurango.WinRT/src/Windows/Xbox/Chat/Windows.Xbox.Chat.ChatDecoder.cpp @@ -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(); diff --git a/projects/WinDurango.WinRT/src/Windows/Xbox/Chat/Windows.Xbox.Chat.ChatEncoder.cpp b/projects/WinDurango.WinRT/src/Windows/Xbox/Chat/Windows.Xbox.Chat.ChatEncoder.cpp index 529bf5e..a164b33 100644 --- a/projects/WinDurango.WinRT/src/Windows/Xbox/Chat/Windows.Xbox.Chat.ChatEncoder.cpp +++ b/projects/WinDurango.WinRT/src/Windows/Xbox/Chat/Windows.Xbox.Chat.ChatEncoder.cpp @@ -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(); diff --git a/projects/WinDurango.WinRT/src/Windows/Xbox/Chat/Windows.Xbox.Chat.ChatSession.cpp b/projects/WinDurango.WinRT/src/Windows/Xbox/Chat/Windows.Xbox.Chat.ChatSession.cpp index 31114cb..e014d8a 100644 --- a/projects/WinDurango.WinRT/src/Windows/Xbox/Chat/Windows.Xbox.Chat.ChatSession.cpp +++ b/projects/WinDurango.WinRT/src/Windows/Xbox/Chat/Windows.Xbox.Chat.ChatSession.cpp @@ -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();