diff options
| author | Daniel Rugerio <[email protected]> | 2019-06-28 16:08:54 -0700 |
|---|---|---|
| committer | Adonais Romero González <[email protected]> | 2019-06-28 16:08:54 -0700 |
| commit | 8ffcdad009e4d410f92fabc4e322a76a0be3a69d (patch) | |
| tree | 378b2d98a4210c61e2bc34f5b8959e87e4be5c6c /audio/tests/wavetest/comptest.cpp | |
| parent | 75b2290f2a4ece68739d07135d352cdfec3a9e89 (diff) | |
Update audio samples (#387)
* Update SysVAD public sample.
* Add WaveTest public sample.
Diffstat (limited to 'audio/tests/wavetest/comptest.cpp')
| -rw-r--r-- | audio/tests/wavetest/comptest.cpp | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/audio/tests/wavetest/comptest.cpp b/audio/tests/wavetest/comptest.cpp new file mode 100644 index 00000000..ef41972c --- /dev/null +++ b/audio/tests/wavetest/comptest.cpp @@ -0,0 +1,37 @@ +// ------------------------------------------------------------------------------ +// +// Copyright (C) Microsoft. All rights reserved. +// +// Module Name: +// +// comptest.cpp +// +// Abstract: +// +// Implementation file for test cases +// +// ------------------------------------------------------------------------------- + +#include "PreComp.h" +#include "WaveTestTaef.h" +#include "tests.h" + +// ------------------------------------------------------------------------------ +// Test_VerifyPinSupportsPullMode: Test the requirement that WaveRT drivers must support pull mode audio streaming technology. +void Test_VerifyPinSupportsPullMode(void) +{ + CHalfApp* pHalfApp = g_pWaveTest->m_pHalf; + BOOL bIsRTCapable = false; + BOOL bIsEventCapable = false; + + VERIFY_SUCCEEDED(pHalfApp->InitializeEndpoint()); + + VERIFY_SUCCEEDED(pHalfApp->m_pAudioDeviceEndpoint->GetRTCaps(&bIsRTCapable)); + + // Only require pull mode for WaveRT drivers + if (bIsRTCapable) + { + VERIFY_SUCCEEDED(pHalfApp->m_pAudioDeviceEndpoint->GetEventDrivenCapable(&bIsEventCapable)); + VERIFY_IS_TRUE(bIsEventCapable); + } +}
\ No newline at end of file |
