Class MediaEncoder
Odin Capture Media
Assembly: cs.temp.dll.dll
Implements:
Odin.IDisposable
Properties
Id
Media id
MediaProperties
Arbitrary media data
Samplerate
Input samplerate
Stereo
Input channel flag
Pipeline
Odin effect pipeline
GuardSilence
On true OdinNative.Wrapper.MediaEncoder.Push(System.Single[])
isSilent = true will not push data to the native encoder
Parent
Default value
null indicates root or not set
Methods
Create(ushort, uint, bool)
Create a new dangling input media.
Returns
OdinNative.Wrapper.MediaEncoder: input media
Parameters
| Type | Name | Description |
|---|---|---|
System.UInt16 | mediaId | input media id |
System.UInt32 | samplerate | samplerate |
System.Boolean | stereo | stereo flag |
GetPipeline()
Get native effect pipeline
Returns
OdinNative.Wrapper.MediaPipeline: managed effect pipeline### PopAll(ref ConcurrentStack<byte[]>) Pop all audio datagrams into the stack
Returns
System.Boolean: true on success or false
Parameters
| Type | Name | Description |
|---|---|---|
Odin.ConcurrentStack<System.Byte[]> | datagrams | datagram stack |
Pop(out byte[])
Pop one datagram from the media
Returns
Odin.OdinError: OdinNative.Core.Imports.NativeBindings.OdinError.ODIN_ERROR_SUCCESS/OdinNative.Core.Imports.NativeBindings.OdinError.ODIN_ERROR_NO_DATA or error
Parameters
| Type | Name |
|---|---|
System.Byte[] | datagram |
Push(float[])
Push samples to the media
Returns
Odin.OdinError: OdinNative.Core.Imports.NativeBindings.OdinError.ODIN_ERROR_SUCCESS or error
Parameters
| Type | Name | Description |
|---|---|---|
System.Single[] | samples | audio samples |
Dispose(bool)
Parameters
| Type | Name |
|---|---|
System.Boolean | disposing |
Dispose()
Free native media encoder
Implements
Odin.IDisposable