-
Notifications
You must be signed in to change notification settings - Fork 286
Enable audio support in MRVC #268
base: master
Are you sure you want to change the base?
Conversation
binxie33
commented
Apr 28, 2018
- use the new SendBundleAsyncSequenced so the data buffers won't be sent out of sequence
- 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); |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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( |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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
Does the audio work with the code changes? @binxie33 |