Device Class (Microsoft.DirectX.DirectSound)

Contains methods and properties used to create buffer objects, manage devices, and set up the environment.

Definition

Visual Basic Public Class Device
    Inherits MarshalByRefObjectLeave Site
    Implements IDisposableLeave Site
C# public class Device : MarshalByRefObjectLeave Site, IDisposableLeave Site
C++ public ref class Device : MarshalByRefObjectLeave Site, IDisposableLeave Site
JScript public class Device extends MarshalByRefObjectLeave Site implements IDisposableLeave Site

Members Table

The following table lists the members exposed by the object.

Events

Event Description
Disposing Occurs when the Dispose method is called or when the Device object is finalized and collected by the garbage collector of the Microsoft .NET common language runtime.

Methods

Method Description
Compact This method has no effect.
Device Initializes a new instance of the Device class.
Dispose Immediately releases the unmanaged resources used by the Device object.
Equals Returns a value that indicates whether the current instance is equal to a specified object.
Finalize Allows the Device object to free resources before it is destroyed by the garbage collector.
GetHashCode Returns the hash code for the current instance.
GetObjectByValue This member supports the infrastructure for Microsoft DirectX 9.0 for Managed Code and is not intended to be used directly from your code.
static (Shared in Visual Basic) op_Equality Compares the current instance of a class to another instance to determine whether they are the same.
static (Shared in Visual Basic) op_Inequality Compares the current instance of a class to another instance to determine whether they are different.
raise_Disposing Raises the Device.Disposing event when called from within a derived class.
SetCooperativeLevel Sets the cooperative level of the application for this sound device.

Properties

Property Description
Caps Retrieves the capabilities of the hardware device.
Certified Ascertains whether the device driver is certified for DirectX.
Disposed Gets a value that indicates whether the object is disposed.
SpeakerConfig Retrieves or sets the speaker configuration of the device.

Inheritance Hierarchy

Class Information

Namespace Microsoft.DirectX.DirectSound
Assembly Microsoft.DirectX.DirectSound (microsoft.directx.directsound.dll)
Strong Name Microsoft.DirectX.DirectSound,  Version=1.0.900.0,  Culture=neutral,  PublicKeyToken=d3231b57b74a1492
Show: