Table of Contents

Class AudioConverterException

Namespace
NAudio.MacOS.AudioToolbox
Assembly
NAudio.MacOS.dll

Provides the exception type for errors originating from the usage of the Audio Converter Services API.

public sealed class AudioConverterException : AudioToolboxException, ISerializable
Inheritance
AudioConverterException
Implements
Inherited Members

Constructors

AudioConverterException(int)

Constructs a new instance of the AudioConverterException class with the specified OSStatus error code.

public AudioConverterException(int osStatus)

Parameters

osStatus int

The status code.

AudioConverterException(string, int)

Constructs a new instance of the AudioConverterException class with the specified OSStatus error code, as well as the custom error message to provide.

public AudioConverterException(string message, int osStatus)

Parameters

message string

The custom error message to provide. Can be null.

osStatus int

The OSStatus error code to provide.

Methods

ThrowIfError(int)

Throws an appropriate exception for the specified status code.
Does not throw if the specified code is not an error

public static void ThrowIfError(int osStatus)

Parameters

osStatus int

The OS status code to throw an exception for

Exceptions

ArgumentException
ArgumentOutOfRangeException
NotSupportedException
AudioConverterException