Skip to content
This repository has been archived by the owner on Jul 19, 2024. It is now read-only.

Enable audio support in MRVC #268

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

binxie33
Copy link

  1. use the new SendBundleAsyncSequenced so the data buffers won't be sent out of sequence
  2. enable audio capture and streaming

…t of sequence 2. enable audio capture and streaming
@@ -48,7 +48,7 @@ public Capture()

private async void StartCapture()
{
captureEngine = await CaptureEngine.CreateAsync(false);
captureEngine = await CaptureEngine.CreateAsync(true);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

change function signature to pass in the bool value for audio

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry for the late response. Just got a chance to revisit this project. Added a checkbox in the UI and changed the signature of StartCapture. Please check the latest commit.

@@ -434,6 +434,121 @@ HRESULT ConnectionImpl::SendBundleAsync(
return spWriteAction.CopyTo(sendAction);
}

_Use_decl_annotations_
HRESULT ConnectionImpl::SendBundleAsyncSequenced(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can the single buffer/bundle be refactored to use SendBundleAsync function so there is only one function that is possibly writing to the output stream of the socket

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done. Removed the SendBundleAsyncSequenced function and refactor its code into the original function SendBundleAsync. Please check the latest commit.

…tartCapture 2. refactor the single buffer into SendBundleAsync
@qian256
Copy link

qian256 commented Oct 17, 2020

Does the audio work with the code changes? @binxie33

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants