AudioChannel.SamplingRate Property

Gets the audio sampling rate(s) currently in effect on the channel.

Namespace:  Microsoft.Rtc.Collaboration.AudioVideo
Assembly:  Microsoft.Rtc.Collaboration (in Microsoft.Rtc.Collaboration.dll)

Syntax

'Declaration
Public Property SamplingRate As AudioSamplingRate
    Get
    Friend Set
'Usage
Dim instance As AudioChannel
Dim value As AudioSamplingRate

value = instance.SamplingRate
public AudioSamplingRate SamplingRate { get; internal set; }

Property Value

Type: Microsoft.Rtc.Collaboration.AudioVideo.AudioSamplingRate

Remarks

This value may change during the lifetime of the call; use the AudioVideoFlow's ConfigurationChanged event to requery the current value of this property.

If the property value is the combination of both AudioSamplingRate.EightKhz and AudioSamplingRate.SixteenKhz, media may be exchanged with the peer in either narrowband (8Khz) or wideband (16Khz) formats, and the application cannot assume which will be used.

The value of this property combines the sampling rates of the send and receive directions: the application is recommended to consult the SendDirectionSamplingRate and ReceiveDirectionSamplingRate properties instead, as they provide more accurate information.

See Also

Reference

AudioChannel Class

AudioChannel Members

Microsoft.Rtc.Collaboration.AudioVideo Namespace