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
HephAudio::Native::WasapiParams Struct Referencefinal

struct for storing the WASAPI specific parameters. More...

#include <WasapiParams.h>

Inheritance diagram for HephAudio::Native::WasapiParams:
HephAudio::Native::NativeAudioParams

Public Member Functions

 WasapiParams ()
 
- Public Member Functions inherited from HephAudio::Native::NativeAudioParams
virtual ~NativeAudioParams ()=default
 

Public Attributes

tagCLSCTX renderClsCtx
 
tagCLSCTX captureClsCtx
 
AUDCLNT_SHAREMODE renderShareMode
 
AUDCLNT_SHAREMODE captureShareMode
 
DWORD renderStreamFlags
 
DWORD captureStreamFlags
 
double renderBufferDuration_ms
 
double captureBufferDuration_ms
 
double renderPeriodicity_ms
 
double capturePeriodicity_ms
 

Detailed Description

struct for storing the WASAPI specific parameters.

Constructor & Destructor Documentation

◆ WasapiParams()

HephAudio::Native::WasapiParams::WasapiParams ( )
inline

creates a new instance and initializes it with default values.

Member Data Documentation

◆ renderClsCtx

tagCLSCTX HephAudio::Native::WasapiParams::renderClsCtx

◆ captureClsCtx

tagCLSCTX HephAudio::Native::WasapiParams::captureClsCtx

◆ renderShareMode

AUDCLNT_SHAREMODE HephAudio::Native::WasapiParams::renderShareMode

Render share mode, AUDCLNT_SHAREMODE_SHARED or AUDCLNT_SHAREMODE_EXCLUSIVE.

◆ captureShareMode

AUDCLNT_SHAREMODE HephAudio::Native::WasapiParams::captureShareMode

Capture share mode, AUDCLNT_SHAREMODE_SHARED or AUDCLNT_SHAREMODE_EXCLUSIVE.

◆ renderStreamFlags

DWORD HephAudio::Native::WasapiParams::renderStreamFlags

◆ captureStreamFlags

DWORD HephAudio::Native::WasapiParams::captureStreamFlags

◆ renderBufferDuration_ms

double HephAudio::Native::WasapiParams::renderBufferDuration_ms

duration of the render buffer in milliseconds.

◆ captureBufferDuration_ms

double HephAudio::Native::WasapiParams::captureBufferDuration_ms

duration of the capture buffer in milliseconds.

◆ renderPeriodicity_ms

double HephAudio::Native::WasapiParams::renderPeriodicity_ms

periodicity of the render device in milliseconds. This must be equal to the render buffer duration for exclusive streams.

◆ capturePeriodicity_ms

double HephAudio::Native::WasapiParams::capturePeriodicity_ms

periodicity of the capture device in milliseconds. This must be equal to the capture buffer duration for exclusive streams.