Class MediaDecoder
Odin Playback Media
Assembly: cs.temp.dll.dll
Declaration
Implements:
Odin.IDisposable
Properties
Id
Media id
Declaration
MediaProperties
Arbitrary media data
Declaration
IsPaused
Declaration
Samplerate
Output samplerate
Declaration
Stereo
Output channel flag
Declaration
Pipeline
Odin effect pipeline
Declaration
Parent
Default value
null
indicates root or not set
Declaration
Methods
Create(ushort, uint, bool)
Create a new dangling output media.
Declaration
Returns
OdinNative.Wrapper.MediaDecoder: output media
Parameters
Type | Name | Description |
---|---|---|
System.UInt16 | mediaId | output media id |
System.UInt32 | samplerate | samplerate |
System.Boolean | stereo | stereo flag |
GetPipeline()
Get native effect pipeline
Declaration
Returns
OdinNative.Wrapper.MediaPipeline: managed effect pipeline### Pop(ref float[], out bool) Pop output audio from the media
Declaration
Returns
System.Boolean
: true on success or false
Parameters
Type | Name | Description |
---|---|---|
System.Single[] | audio | samples |
System.Boolean | isSilent |
Push(float[])
Push output audio into the media for effect processing
Declaration
Returns
System.Boolean
: true on success or false
Parameters
Type | Name | Description |
---|---|---|
System.Single[] | datagram | samples |
Push(IntPtr, int)
Declaration
Returns
System.Boolean
Parameters
Type | Name |
---|---|
Odin.IntPtr | datagramPtr |
System.Int32 | datagramLength |
Dispose(bool)
Declaration
Parameters
Type | Name |
---|---|
System.Boolean | disposing |
Dispose()
Free native media decoder
Declaration
Implements
Odin.IDisposable