Search Results for

    Show / Hide Table of Contents

    Class VirtualDevice

    Represents a virtual loopback MIDI device (MIDI cable). More info in the Virtual device article.
    Inheritance
    object
    MidiDevice
    VirtualDevice
    Implements
    IDisposable
    Inherited Members
    MidiDevice.ErrorOccurred
    MidiDevice.IsEnabled
    MidiDevice.Dispose()
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.ReferenceEquals(object, object)
    Namespace: Melanchall.DryWetMidi.Multimedia
    Assembly: Melanchall.DryWetMidi.dll
    Syntax
    public sealed class VirtualDevice : MidiDevice, IDisposable

    Properties

    InputDevice

    Gets the input subdevice of the current VirtualDevice.
    Declaration
    public InputDevice InputDevice { get; }
    Property Value
    Type Description
    InputDevice

    Name

    Gets the name of the current MIDI device.
    Declaration
    public override string Name { get; }
    Property Value
    Type Description
    string
    Overrides
    MidiDevice.Name

    OutputDevice

    Gets the output subdevice of the current VirtualDevice.
    Declaration
    public OutputDevice OutputDevice { get; }
    Property Value
    Type Description
    OutputDevice

    Methods

    Create(string)

    Creates an instance of the VirtualDevice with the specified name.
    Declaration
    public static VirtualDevice Create(string name)
    Parameters
    Type Name Description
    string name The name of a virtual device to create.
    Returns
    Type Description
    VirtualDevice An instance of the VirtualDevice with name of name.
    Exceptions
    Type Condition
    ArgumentException name is null or contains white-spaces only.
    NotSupportedException Virtual device creation is not supported on the current operating system.
    MidiDeviceException An error occurred on device creation.

    ToString()

    Returns a string that represents the current object.
    Declaration
    public override string ToString()
    Returns
    Type Description
    string A string that represents the current object.
    Overrides
    MidiDevice.ToString()

    Implements

    IDisposable
    In this article
    Back to top 2024 / Generated by DocFX