ReactOS  0.4.15-dev-1397-g19779b3
minwave.cpp File Reference
#include "minwave.hpp"
#include "minwavetables.hpp"
#include "ntddk.h"
Include dependency graph for minwave.cpp:

Go to the source code of this file.

Functions

NTSTATUS NTAPI CreateMiniportWaveCMI (PUNKNOWN *Unknown, REFCLSID, PUNKNOWN UnknownOuter, POOL_TYPE PoolType)
 
 STDMETHODIMP_ (void) CMiniportWaveCMI
 

Function Documentation

◆ CreateMiniportWaveCMI()

NTSTATUS NTAPI CreateMiniportWaveCMI ( PUNKNOWN Unknown,
REFCLSID  ,
PUNKNOWN  UnknownOuter,
POOL_TYPE  PoolType 
)

Definition at line 36 of file minwave.cpp.

37 {
38  PAGED_CODE();
39  ASSERT(Unknown);
40 #ifdef WAVERT
41  STD_CREATE_BODY_(CMiniportWaveCMI,Unknown,UnknownOuter,PoolType,PMINIPORTWAVERT);
42 #else
43  STD_CREATE_BODY_(CMiniportWaveCMI,Unknown,UnknownOuter,PoolType,PMINIPORTWAVECYCLIC);
44 #endif
45 }
IMiniportWaveRT * PMINIPORTWAVERT
Definition: portcls.h:1927
#define ASSERT(a)
Definition: mode.c:45
IMiniportWaveCyclic * PMINIPORTWAVECYCLIC
Definition: portcls.h:1524
_Must_inspect_result_ _In_ WDFDEVICE _In_ DEVICE_REGISTRY_PROPERTY _In_ _Strict_type_match_ POOL_TYPE PoolType
Definition: wdfdevice.h:3810
#define PAGED_CODE()

◆ STDMETHODIMP_()

STDMETHODIMP_ ( void  )

Definition at line 342 of file minwave.cpp.

343 {
344  PAGED_CODE();
345  DBGPRINT(("CMiniportWaveCMI[%p]::powerUp()", this));
346  KSSTATE oldState[3];
347 
348  for (int i=0;i<3;i++) {
349  if (isStreamRunning[i]) {
350  oldState[i] = stream[i]->state;
351  stream[i]->SetState(KSSTATE_STOP);
352  }
353  }
354 
355  if (cm->TopoMiniport) {
356  cm->TopoMiniport->loadMixerSettingsFromMemory();
357  }
358 
359  for (int i=0;i<3;i++) {
360  if (isStreamRunning[i]) {
361  stream[i]->prepareStream();
362  stream[i]->SetState(KSSTATE_ACQUIRE);
363  stream[i]->SetState(oldState[i]);
364  }
365  }
366 }
#define DBGPRINT(...)
Definition: pdo.c:21
Definition: parse.h:22
KSSTATE
Definition: ks.h:1214
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
Definition: glfuncs.h:248
#define PAGED_CODE()