AudioRoutingManager AudioRoutingManager AudioRoutingManager AudioRoutingManager Class

Provides functionality that lets Voice over IP applications route audio to endpoints other than the speakerphone.

Syntax

Declaration

public sealed class AudioRoutingManagerpublic sealed class AudioRoutingManagerPublic NotInheritable Class AudioRoutingManagerpublic sealed class AudioRoutingManager

Remarks

The APIs in the Windows.Phone.Media.Devices namespace require the ID_CAP_AUDIOROUTING capability.

Properties summary

Gets the list of available audio routing endpoints.

Methods summary

Gets the audio endpoint currently in use.

Gets the default instance of the AudioRoutingManager class.

Requests a different audio endpoint.

Events summary

Occurs when the audio endpoint currently in use has changed, or when the set of available audio endpoints has changed.

Properties

Methods

  • GetAudioEndpoint()
    GetAudioEndpoint()
    GetAudioEndpoint()
    GetAudioEndpoint()

    Gets the audio endpoint currently in use.

    public AudioRoutingEndpoint GetAudioEndpoint()public AudioRoutingEndpoint GetAudioEndpoint()Public Function GetAudioEndpoint() As AudioRoutingEndpointpublic AudioRoutingEndpoint GetAudioEndpoint()

    Returns

  • GetDefault()
    GetDefault()
    GetDefault()
    GetDefault()

    Gets the default instance of the AudioRoutingManager class.

    public static AudioRoutingManager GetDefault()public static AudioRoutingManager GetDefault()Public Static Function GetDefault() As AudioRoutingManagerpublic static AudioRoutingManager GetDefault()

    Returns

  • SetAudioEndpoint(AudioRoutingEndpoint)
    SetAudioEndpoint(AudioRoutingEndpoint)
    SetAudioEndpoint(AudioRoutingEndpoint)
    SetAudioEndpoint(AudioRoutingEndpoint)

    Requests a different audio endpoint.

    public void SetAudioEndpoint(AudioRoutingEndpoint endpoint)public void SetAudioEndpoint(AudioRoutingEndpoint endpoint)Public Function SetAudioEndpoint(endpoint As AudioRoutingEndpoint) As voidpublic void SetAudioEndpoint(AudioRoutingEndpoint endpoint)

    Parameters

    Remarks

    Setting the audio endpoint will only succeed if you have an active communications-category audio stream in the system. Otherwise, it will fail.

Events

  • AudioEndpointChanged
    AudioEndpointChanged
    AudioEndpointChanged
    AudioEndpointChanged

    Occurs when the audio endpoint currently in use has changed, or when the set of available audio endpoints has changed.

    public event TypedEventHandler AudioEndpointChangedpublic event TypedEventHandler AudioEndpointChangedPublic Event AudioEndpointChangedpublic event TypedEventHandler AudioEndpointChanged

    Remarks

    This event is raised even when the application itself has requested the change by calling SetAudioEndpoint(AudioRoutingEndpoint).

Device family

Windows Mobile Extension SDK (introduced v10.0.10240.0)

API contract

Windows.Phone.PhoneContract (introduced v1)

Capabilities

ID_CAP_VOIP [Windows Phone]

Attributes

Windows.Foundation.Metadata.ContractVersionAttribute
Windows.Foundation.Metadata.MarshalingBehaviorAttribute
Windows.Foundation.Metadata.StaticAttribute

Details

Assembly

Windows.Phone.Media.Devices.dll