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
Properties
DefaultPeriodInFrames
Default period in frames
public uint DefaultPeriodInFrames { get; }
Property Value
FundamentalPeriodInFrames
Fundamental period in frames (all periods must be multiples of this)
public uint FundamentalPeriodInFrames { get; }
Property Value
MaxPeriodInFrames
Maximum period in frames
public uint MaxPeriodInFrames { get; }
Property Value
MinPeriodInFrames
Minimum period in frames
public uint MinPeriodInFrames { get; }
Property Value
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()