diff options
| author | Daniel Rugerio <[email protected]> | 2020-05-13 16:23:40 -0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2020-05-13 16:23:40 -0700 |
| commit | bf0b0fe11d8b301cdfcc6d13f12a778cdd1c14b5 (patch) | |
| tree | 55938bebdfe634226f0c1ee7822cbcdb4879f975 /audio/tests/PinResourceHelpers/TestResourceHelper.h | |
| parent | b78312cfe7990524cb46a1453ad2e013586857a0 (diff) | |
Update to SysVAD, Wave test and public sample of KS Position Test (#496)147237
* Update to Wave test and public sample of KS Position test.
* Update to the SysVAD audio driver sample.
* Add the PnpLockDown property.
Diffstat (limited to 'audio/tests/PinResourceHelpers/TestResourceHelper.h')
| -rw-r--r-- | audio/tests/PinResourceHelpers/TestResourceHelper.h | 73 |
1 files changed, 73 insertions, 0 deletions
diff --git a/audio/tests/PinResourceHelpers/TestResourceHelper.h b/audio/tests/PinResourceHelpers/TestResourceHelper.h new file mode 100644 index 00000000..08fafa23 --- /dev/null +++ b/audio/tests/PinResourceHelpers/TestResourceHelper.h @@ -0,0 +1,73 @@ +// ------------------------------------------------------------------------------ +// +// Copyright (C) Microsoft. All rights reserved. +// +// Module Name: +// +// TestResourceHelpers.h +// +// Abstract: +// +// Header for BuildResourceList helpers. +// +// ------------------------------------------------------------------------------- +#pragma once + +#include <HalfApp.h> + +// ---------------------------------------------------------------------- +HRESULT GetProcessingModesForConnector +( + IMMDevice* pDevice, + UINT uConnectorId, + EndpointConnectorType eConnectorType, + ULONG* pCount, + AUDIO_SIGNALPROCESSINGMODE** ppModes +); + +// ---------------------------------------------------------------------- +HRESULT GetDefaultFormatForConnector +( + IMMDevice* pDevice, + EndpointConnectorType eConnectorType, + WAVEFORMATEX** ppDefaultFormat +); + +// ---------------------------------------------------------------------- +HRESULT GetPreferredFormatForConnector +( + IMMDevice* pDevice, + UINT uConnectorId, + EndpointConnectorType eConnectorType, + AUDIO_SIGNALPROCESSINGMODE mode, + WAVEFORMATEX** ppPreferredFormat +); + +// ---------------------------------------------------------------------- +HRESULT GetPreferredFormatPeriodicityCharacteristicsForConnector +( + IMMDevice* pDevice, + EndpointConnectorType eConnectorType, + AUDIO_SIGNALPROCESSINGMODE mode, + STACKWISE_DATAFLOW dataFlow, + WAVEFORMATEX* pPreferredFormat, + ULONG cFormatRecords, + PFORMAT_RECORD pFormatRecords, + UINT32* pDefaultPeriodicityInFrames, + UINT32* pFundamentalPeriodicityInFrames, + UINT32* pMinPeriodicityInFrames, + UINT32* pMaxPeriodicityInFrames, + UINT32* pMaxPeriodicityInFramesExtended +); + +// ---------------------------------------------------------------------- +HRESULT GetSupportedFormatRecordsForConnector +( + IMMDevice* pDevice, + UINT uConnectorId, + EndpointConnectorType eConnectorType, + AUDIO_SIGNALPROCESSINGMODE mode, + STACKWISE_DATAFLOW dataFlow, + ULONG* pCount, + FORMAT_RECORD** ppFormatRecords +); |
