Our new developer documentation is now available. Please check it out!
MicrophoneStream
Inherits from: MediaStream
public class MicrophoneStream : MediaStream, IDisposable
Representation of a write only audio stream
Constructors
Name | Description |
---|---|
MicrophoneStream() | |
MicrophoneStream(OdinMediaConfig) |
Properties
Name | Description |
---|---|
IsMuted |
Public Methods
Name | Description |
---|---|
MuteStream | |
AudioPushData | |
AudioStats | AudioReadData and AudioReadDataAsync are not supported! |
AudioReset | AudioReset is not supported! |
AudioReadData | AudioReadData is not supported! |
AudioReadDataTask | AudioReadDataTask is not supported! |
AudioReadDataAsync | AudioReadDataAsync is not supported! |
Inherited Properties
Name | Description |
---|---|
Id | Handle ID |
MediaConfig | Audio config of the media stream |
CancellationSource | Control of async read and write tasks |
IsActive | Indicates wether or not the media stream is active and sending/receiving data |
HasErrors | Indicates wether or not the last media stream api call result is an error code |
IsInvalid | Indicates wether or not the media stream handle is invalid or closed |
Inherited Methods
Name | Description |
---|---|
GetMediaId | Returns the media stream ID and updates Id. |
GetPeerId | Returns the ID of the peer that own this media stream. |
AudioPushData | Sends data to the audio stream. The data has to be interleaved [-1, 1] float data. |
AudioPushDataTask | Sends data to the audio stream. The data has to be interleaved [-1, 1] float data. |
AudioPushDataAsync | Sends audio data using a custom CancellationSource. The data has to be interleaved [-1, 1] float data. |
AudioReset | |
AudioReadData | Reads data from the audio stream. |
AudioStats | Retrieves statistics for the specified Media. |
AudioReadDataTask | Reads data from the audio stream. |
AudioReadDataAsync | Read audio data using a custom custom CancellationSource. |
AudioResample | Set a resampler and resamples a chunk of audio. |
Cancel | Cancel the custom CancellationSource. |
ToString | Debug |
Dispose | On dispose will free the stream and resampler |