Unosquare
    Show / Hide Table of Contents

    Struct AudioState

    Manage the volume of any sound device.

    Inherited Members
    ValueType.Equals(Object)
    ValueType.GetHashCode()
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetType()
    Namespace: Unosquare.RaspberryIO.Computer
    Syntax
    public struct AudioState

    Constructors

    AudioState(Int32, String, Int32, Single, Boolean)

    Initializes a new instance of the AudioState struct.

    Declaration
    public AudioState(int cardNumber, string controlName, int level, float decibels, bool isMute)
    Parameters
    Type Name Description
    Int32 cardNumber

    The card number.

    String controlName

    Name of the control.

    Int32 level

    The volume level in percentaje.

    Single decibels

    The volume level in decibels.

    Boolean isMute

    if set to true the audio is mute.

    Properties

    CardNumber

    Gets the card number.

    Declaration
    public int CardNumber { get; }
    Property Value
    Type Description
    Int32

    ControlName

    Gets the name of the current control.

    Declaration
    public string ControlName { get; }
    Property Value
    Type Description
    String

    Decibels

    Gets the volume level in decibels.

    Declaration
    public float Decibels { get; }
    Property Value
    Type Description
    Single

    IsMute

    Gets a value indicating whether the audio is mute.

    Declaration
    public bool IsMute { get; }
    Property Value
    Type Description
    Boolean

    Level

    Gets the volume level in percentage.

    Declaration
    public int Level { get; }
    Property Value
    Type Description
    Int32

    Methods

    ToString()

    Returns a String that represents the audio state.

    Declaration
    public override string ToString()
    Returns
    Type Description
    String

    A String that represents the audio state.

    Overrides
    ValueType.ToString()

    Comments

    Back to top Copyright © 2017-2019 Unosquare