Skip to main content
Version: 1.x

Class MicrophoneStream

Representation of a write only audio stream

Declaration
public class MicrophoneStream : MediaStream, IDisposable

Inheritance: System.Object -> OdinNative.Odin.Media.MediaStream

Implements:
Global.IDisposable

Properties

IsMuted

Declaration
public bool IsMuted { get; }

Methods

MuteStream(bool)

Declaration
public void MuteStream(bool mute)
Parameters
TypeName
System.Booleanmute

AudioPushData(float[], int)

Declaration
public override void AudioPushData(float[] buffer, int length)
Parameters
TypeName
System.Single[]buffer
System.Int32length

AudioStats(out OdinAudioStreamStats)

AudioReadData and AudioReadDataAsync are not supported!

Declaration
public override bool AudioStats(out NativeBindings.OdinAudioStreamStats stats)
Returns

System.Boolean: throws OdinWrapperException

Parameters
TypeNameDescription
OdinNative.Core.Imports.NativeBindings.OdinAudioStreamStatsstatsAudio stream statistics
Exceptions

OdinNative.Odin.OdinWrapperException

AudioReset()

AudioReset is not supported!

Declaration
public override bool AudioReset()
Returns

System.Boolean: throws OdinWrapperException

Exceptions

OdinNative.Odin.OdinWrapperException

AudioReadData(float[])

AudioReadData is not supported!

Declaration
public override uint AudioReadData(float[] buffer)
Returns

System.UInt32: throws OdinWrapperException

Parameters
TypeName
System.Single[]buffer
Exceptions

OdinNative.Odin.OdinWrapperException

AudioReadDataTask(float[], CancellationToken)

AudioReadDataTask is not supported!

Declaration
public override Task<uint> AudioReadDataTask(float[] buffer, CancellationToken cancellationToken)
Returns

Global.Task<System.UInt32>: throws OdinWrapperException

Parameters
TypeName
System.Single[]buffer
Global.CancellationTokencancellationToken
Exceptions

OdinNative.Odin.OdinWrapperException

AudioReadDataAsync(float[])

AudioReadDataAsync is not supported!

Declaration
public override Task<uint> AudioReadDataAsync(float[] buffer)
Returns

Global.Task<System.UInt32>: throws OdinWrapperException

Parameters
TypeName
System.Single[]buffer
Exceptions

OdinNative.Odin.OdinWrapperException

Implements

  • Global.IDisposable