Table of Contents

Struct AudioClientPeriodInfo

Namespace
NAudio.CoreAudioApi
Assembly
NAudio.Wasapi.dll

Information about the audio engine periodicity for shared mode.

public readonly struct AudioClientPeriodInfo
Inherited Members

Constructors

AudioClientPeriodInfo(uint, uint, uint, uint)

Creates a new AudioClientPeriodInfo

public AudioClientPeriodInfo(uint defaultPeriod, uint fundamentalPeriod, uint minPeriod, uint maxPeriod)

Parameters

defaultPeriod uint
fundamentalPeriod uint
minPeriod uint
maxPeriod uint

Properties

DefaultPeriodInFrames

Default period in frames

public uint DefaultPeriodInFrames { get; }

Property Value

uint

FundamentalPeriodInFrames

Fundamental period in frames (all periods must be multiples of this)

public uint FundamentalPeriodInFrames { get; }

Property Value

uint

MaxPeriodInFrames

Maximum period in frames

public uint MaxPeriodInFrames { get; }

Property Value

uint

MinPeriodInFrames

Minimum period in frames

public uint MinPeriodInFrames { get; }

Property Value

uint

Methods

ChooseLowestLatencyPeriod()

Picks the lowest engine period that satisfies the IAudioClient3 constraints: an integral multiple of the fundamental period, no smaller than the minimum and no larger than the maximum. This is the period to pass to InitializeSharedAudioStream(AudioClientStreamFlags, uint, WaveFormat, Guid) for the lowest achievable shared-mode latency.

public uint ChooseLowestLatencyPeriod()

Returns

uint