Table of Contents

Class AudioClockDevice

Namespace
NAudio.MacOS.CoreAudio
Assembly
NAudio.MacOS.dll

The audio clock device represents the clock of an AudioDevice object.

public sealed class AudioClockDevice : AudioObject, IEquatable<AudioObject>, IEqualityOperators<AudioObject, AudioObject, bool>
Inheritance
AudioClockDevice
Implements
Inherited Members

Properties

AvailableNomimalSampleRates

An array of pairs that indicates the valid ranges for the nominal sample rate of the AudioClockDevice.

public (double min, double max)[] AvailableNomimalSampleRates { get; }

Property Value

(double min, double max)[]

ClockDomain

A uint whose value indicates the clock domain to which this AudioClockDevice belongs. AudioClockDevices and AudioDevices that have the same value for this property are able to be synchronized in hardware. However, a value of 0 indicates that the clock domain for the device is unspecified and should be assumed to be separate from every other device's clock domain, even if they have the value of 0 as their clock domain as well.

public uint ClockDomain { get; }

Property Value

uint

DeviceUID

A string that contains a persistent identifier for the AudioClockDevice. An AudioClockDevice's UID is persistent across boots. The content of the UID string is a black box and may contain information that is unique to a particular instance of an clock's hardware or unique to the CPU. Therefore they are not suitable for passing between CPUs or for identifying similar models of hardware.

public string DeviceUID { get; }

Property Value

string

IsAlive

A bool where a value of true means the device is ready and available and false means the device is usable and will most likely go away shortly.

public bool IsAlive { get; }

Property Value

bool

IsRunning

A bool where a value of false means the AudioClockDevice is not providing times and a value of true means that it is.
Note that the notification for this property is usually sent from the AudioClockDevice's IO thread.

public bool IsRunning { get; }

Property Value

bool

Latency

A uint containing the number of frames of latency in the AudioClockDevice.

public uint Latency { get; }

Property Value

uint

NominalSampleRate

A double that indicates the current nominal sample rate of the AudioClockDevice.

public double NominalSampleRate { get; }

Property Value

double

TransportType

A TransportType whose value indicates how the AudioClockDevice is connected to the CPU. Constants for some of the values for this property can be found in the class TransportTypeConstants.

public TransportType TransportType { get; }

Property Value

TransportType