Skip to content

Commit

Permalink
Merge pull request #220 from microsoft/pete-dev
Browse files Browse the repository at this point in the history
Significant console performance updates
  • Loading branch information
Psychlist1972 authored Jan 16, 2024
2 parents b56dd59 + 5a40b48 commit 556c7e8
Show file tree
Hide file tree
Showing 5 changed files with 269 additions and 110 deletions.
2 changes: 1 addition & 1 deletion build/staging/version/BundleInfo.wxi
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<Include>
<?define SetupVersionName="Developer Preview 4" ?>
<?define SetupVersionNumber="1.0.24014.2122" ?>
<?define SetupVersionNumber="1.0.24015.1748" ?>
</Include>
7 changes: 6 additions & 1 deletion src/api/Abstraction/MidiSrvAbstraction/Midi2.MidiSrv.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ CMidi2MidiSrv::Initialize(
TraceLoggingPointer(this, "this")
);

MIDISRV_CLIENTCREATION_PARAMS creationParams{ 0 };
MIDISRV_CLIENTCREATION_PARAMS creationParams{ };
PMIDISRV_CLIENT client{ nullptr };
wil::unique_rpc_binding bindingHandle;

Expand All @@ -48,8 +48,13 @@ CMidi2MidiSrv::Initialize(

creationParams.Flow = Flow;
creationParams.DataFormat = CreationParams->DataFormat;

// Todo: client side buffering requests to come from some service setting?
// - See https://github.com/microsoft/MIDI/issues/219 for details

creationParams.BufferSize = PAGE_SIZE;
//creationParams.BufferSize = 512; // Set this for debugging see https://github.com/microsoft/MIDI/issues/182 for all the drama :)


RETURN_IF_FAILED(GetMidiSrvBindingHandle(&bindingHandle));

Expand Down
1 change: 1 addition & 0 deletions src/api/Libs/MidiKs/MidiKs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,7 @@ KSMidiDevice::PinSetState(
return S_OK;
}

_Use_decl_annotations_
HRESULT
KSMidiDevice::ConfigureLoopedBuffer(ULONG& BufferSize
)
Expand Down
Loading

0 comments on commit 556c7e8

Please sign in to comment.