Class PlaybackStream
Representation of a read only audio stream
Declaration
Inheritance: System.Object -> OdinNative.Odin.Media.MediaStream
Implements:
Global.IDisposable
Methods
AudioPushData(float[])
AudioPushDataTask and AudioPushDataAsync are not supported!
Declaration
Parameters
| Type | Name |
|---|---|
System.Single[] | buffer |
Exceptions
OdinNative.Odin.OdinWrapperException
AudioPushDataTask(float[], CancellationToken)
AudioPushDataTask and AudioPushDataAsync are not supported!
Declaration
Returns
Global.Task
Parameters
| Type | Name |
|---|---|
System.Single[] | buffer |
Global.CancellationToken | cancellationToken |
Exceptions
OdinNative.Odin.OdinWrapperException
AudioPushDataAsync(float[])
AudioPushDataTask and AudioPushDataAsync are not supported!
Declaration
Parameters
| Type | Name |
|---|---|
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
Returns
System.Boolean: True, if reset was successful
Implements
Global.IDisposable