Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IAudioProcessingObjectConfiguration.LockForProcess missing array attributes on parameters #1368

Closed
AArnott opened this issue Nov 15, 2022 · 1 comment
Assignees
Labels
blocking A projection cannot use the latest version bug Something isn't working

Comments

@AArnott
Copy link
Member

AArnott commented Nov 15, 2022

The LockForProcess method should have [NativeArrayInfo] attributes on parameters 2 and 4.

-unsafe HRESULT LockForProcess([In] uint u32NumInputConnections, [In] APO_CONNECTION_DESCRIPTOR** ppInputConnections, [In] uint u32NumOutputConnections, [In] APO_CONNECTION_DESCRIPTOR** ppOutputConnections);
+unsafe HRESULT LockForProcess([In] uint u32NumInputConnections, [In, NativeArrayInfo(CountParamIndex = 0)] APO_CONNECTION_DESCRIPTOR** ppInputConnections, [In] uint u32NumOutputConnections, [In, NativeArrayInfo(CountParamIndex = 2)] APO_CONNECTION_DESCRIPTOR** ppOutputConnections);
@AArnott AArnott added bug Something isn't working blocking A projection cannot use the latest version labels Nov 15, 2022
@mikebattista mikebattista self-assigned this Nov 15, 2022
@mikebattista
Copy link
Contributor

Windows.Win32.Media.Audio.Apo.IAudioProcessingObjectConfiguration.LockForProcess : ppInputConnections : [In] => [In,NativeArrayInfo(CountParamIndex=0)]
Windows.Win32.Media.Audio.Apo.IAudioProcessingObjectConfiguration.LockForProcess : ppOutputConnections : [In] => [In,NativeArrayInfo(CountParamIndex=2)]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
blocking A projection cannot use the latest version bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants