blob: ef41972cb5258e98f8a1e79cd4a8d996e058903d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
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);
}
}
|