summaryrefslogtreecommitdiff
path: root/audio/tests/PinResourceHelpers/TestResourceHelper.h
diff options
context:
space:
mode:
Diffstat (limited to 'audio/tests/PinResourceHelpers/TestResourceHelper.h')
-rw-r--r--audio/tests/PinResourceHelpers/TestResourceHelper.h73
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
+);