HephAudio v3.0.6
A cross-platform C++ library for recording, playing, and processing audio on Windows, Android, Linux, iOS, and macOS.
Loading...
Searching...
No Matches
WasapiParams.h
Go to the documentation of this file.
1#pragma once
2#if defined(_WIN32)
3#include "HephAudioShared.h"
4#include "NativeAudioParams.h"
5#include <audiopolicy.h>
6
9namespace HephAudio
10{
11 namespace Native
12 {
18 {
23 tagCLSCTX renderClsCtx;
24
29 tagCLSCTX captureClsCtx;
30
36 AUDCLNT_SHAREMODE renderShareMode;
37
43 AUDCLNT_SHAREMODE captureShareMode;
44
50
56
62
68
75
82
85 : renderClsCtx(CLSCTX_INPROC_SERVER), captureClsCtx(CLSCTX_INPROC_SERVER)
86 , renderShareMode(AUDCLNT_SHAREMODE_SHARED), captureShareMode(AUDCLNT_SHAREMODE_SHARED)
87 , renderStreamFlags(AUDCLNT_STREAMFLAGS_EVENTCALLBACK), captureStreamFlags(0)
88 , renderBufferDuration_ms(0), captureBufferDuration_ms(40)
89 , renderPeriodicity_ms(0), capturePeriodicity_ms(0) {}
90 };
91 }
92}
93#endif
#define HEPH_API
Definition HephShared.h:132
base class for storing the native audio API specific parameters.
Definition NativeAudioParams.h:15
struct for storing the WASAPI specific parameters.
Definition WasapiParams.h:18
double capturePeriodicity_ms
Definition WasapiParams.h:81
double renderPeriodicity_ms
Definition WasapiParams.h:74
tagCLSCTX captureClsCtx
Definition WasapiParams.h:29
WasapiParams()
Definition WasapiParams.h:84
double renderBufferDuration_ms
Definition WasapiParams.h:61
DWORD captureStreamFlags
Definition WasapiParams.h:55
AUDCLNT_SHAREMODE captureShareMode
Definition WasapiParams.h:43
double captureBufferDuration_ms
Definition WasapiParams.h:67
tagCLSCTX renderClsCtx
Definition WasapiParams.h:23
AUDCLNT_SHAREMODE renderShareMode
Definition WasapiParams.h:36
DWORD renderStreamFlags
Definition WasapiParams.h:49