Table of Contents

Class DirectSoundException

Namespace
NAudio.Wave
Assembly
NAudio.Dmo.dll

Exception thrown by DirectSound API operations. Inherits from COMException for backwards compatibility with code that catches COMException from the legacy [ComImport] path (which auto-threw on failure HRESULTs via PreserveSig=false). The [GeneratedComInterface] migration moved DirectSound to explicit [PreserveSig] int-returning slots, so HRESULT inspection is now done via ThrowIfFailed(int).

public class DirectSoundException : COMException, ISerializable
Inheritance
DirectSoundException
Implements
Inherited Members
Extension Methods

Constructors

DirectSoundException(int)

Creates a new DirectSoundException.

public DirectSoundException(int hresult)

Parameters

hresult int

Methods

ThrowIfFailed(int)

Throws a DirectSoundException if the HRESULT indicates failure.

public static void ThrowIfFailed(int hresult)

Parameters

hresult int