Skip to main content
Version: 1.x

Class PlaybackStream

Representation of a read only audio stream

Declaration
public class PlaybackStream : MediaStream, IDisposable

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

Implements:
Global.IDisposable

Methods

AudioPushData(float[])

AudioPushDataTask and AudioPushDataAsync are not supported!

Declaration
public override void AudioPushData(float[] buffer)
Parameters
TypeName
System.Single[]buffer
Exceptions

OdinNative.Odin.OdinWrapperException

AudioPushDataTask(float[], CancellationToken)

AudioPushDataTask and AudioPushDataAsync are not supported!

Declaration
public override Task AudioPushDataTask(float[] buffer, CancellationToken cancellationToken)
Returns

Global.Task

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

OdinNative.Odin.OdinWrapperException

AudioPushDataAsync(float[])

AudioPushDataTask and AudioPushDataAsync are not supported!

Declaration
public override void AudioPushDataAsync(float[] buffer)
Parameters
TypeName
System.Single[]buffer
Exceptions

OdinNative.Odin.OdinWrapperException

AudioReset()

This operation resets the internal Opus encoder/decoder, ensuring a clean state. Additionally, it clears internal buffers, providing a fresh start.

Declaration
public override bool AudioReset()
Returns

System.Boolean: True, if reset was successful

Implements

  • Global.IDisposable