Table of Contents

Class AudioFormatNotSupportedException

Namespace
NAudio.CoreAudioApi
Assembly
NAudio.Wasapi.dll

Exception thrown when the audio format is not supported.

public class AudioFormatNotSupportedException : CoreAudioException, ISerializable
Inheritance
AudioFormatNotSupportedException
Implements
Inherited Members
Extension Methods

Constructors

AudioFormatNotSupportedException(int)

Creates a new AudioFormatNotSupportedException

public AudioFormatNotSupportedException(int hresult)

Parameters

hresult int

Properties

RequestedFormat

The format that was requested

public WaveFormat? RequestedFormat { get; init; }

Property Value

WaveFormat

SuggestedFormat

The closest format the endpoint can support, if available

public WaveFormat? SuggestedFormat { get; init; }

Property Value

WaveFormat