AudioDeviceCollection Class |
Namespace: Accord.DirectSound
The AudioDeviceCollection type exposes the following members.
Name | Description | |
---|---|---|
AudioDeviceCollection |
Creates a AudioDeviceCollection class containing
devices of the given category.
|
Name | Description | |
---|---|---|
Category |
Gets the category
of the audio devices listed by this collection.
| |
Default |
Gets the default audio device of the chosen
category.
|
Name | Description | |
---|---|---|
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetEnumerator |
Returns an enumerator that iterates through the device collection.
| |
GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
ToString | Returns a string that represents the current object. (Inherited from Object.) |
Name | Description | |
---|---|---|
HasMethod |
Checks whether an object implements a method with the given name.
(Defined by ExtensionMethods.) | |
IsEqual |
Compares two objects for equality, performing an elementwise
comparison if the elements are vectors or matrices.
(Defined by Matrix.) | |
SetEqualsAudioDeviceInfo |
Compares two enumerables for set equality. Two
enumerables are set equal if they contain the
same elements, but not necessarily in the same
order.
(Defined by Matrix.) | |
To(Type) | Overloaded.
Converts an object into another type, irrespective of whether
the conversion can be done at compile time or not. This can be
used to convert generic types to numeric types during runtime.
(Defined by ExtensionMethods.) | |
ToT | Overloaded.
Converts an object into another type, irrespective of whether
the conversion can be done at compile time or not. This can be
used to convert generic types to numeric types during runtime.
(Defined by ExtensionMethods.) |
The source code below shows a typical usage of AudioDeviceCollection.
// Create a new AudioDeviceCollection to list output devices: var collection = new AudioDeviceCollection(AudioDeviceCategory.Output); // Print all devices available in the system foreach (var device in collection) Console.WriteLine(device.ToString()); // Get the default audio device in the system var defaultDevice = collection.Default;