Class AudioTrackSource
Audio source for WebRTC audio tracks.
The audio source is not bound to any peer connection, and can therefore be shared by multiple audio tracks from different peer connections. This is especially useful to share local audio capture devices (microphones) amongst multiple peer connections when building a multi-peer experience with a mesh topology (one connection per pair of peers).
The user owns the audio track source, and is in charge of keeping it alive until after all tracks using it are destroyed, and then dispose of it. The behavior of disposing of the track source while a track is still using it is undefined. The Tracks property contains the list of tracks currently using the source.
Namespace: Microsoft.MixedReality.WebRTC
Assembly: Microsoft.MixedReality.WebRTC.dll
Syntax
public abstract class AudioTrackSource : IDisposable
Properties
| Improve this Doc View SourceName
A name for the audio track source, used for logging and debugging.
Declaration
public string Name { get; set; }
Property Value
Type | Description |
---|---|
String |
Tracks
List of local audio tracks this source is providing raw audio frames to.
Declaration
public IReadOnlyList<LocalAudioTrack> Tracks { get; }
Property Value
Type | Description |
---|---|
IReadOnlyList<LocalAudioTrack> |
Methods
| Improve this Doc View SourceDispose()
Declaration
public void Dispose()
ToString()
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
String |