Class MediaPipeline
Odin audio pipeline
Assembly: cs.temp.dll.dll
Methods
GetEffects()
Get Pipeline effects collection
Returns
Odin.ILookup<System.UInt32,IPiplineEffect>
: Get effects mapped by id### GetNextIndex()
Calculate the next available index based on OdinNative.Wrapper.MediaPipeline._Effects
entries
Returns
System.UInt32
: next available index### GetEffectCount()
Get the current effect count of the native pipeline
Returns
System.UInt32
: count of native registered effects### GetEffectId(uint)
Get the effect id of the native pipeline by index id
Returns
System.UInt32
: effect id
Parameters
Type | Name | Description |
---|---|---|
System.UInt32 | indexId | index id |
AddApmEffect(uint, bool, OdinApmConfig)
Insert a apm effect and sets the apm config
Returns
Odin.ApmEffect
: OdinNative.Wrapper.Media.ApmEffect instance of base OdinNative.Wrapper.Media.PiplineEffect : OdinNative.Wrapper.Media.IPiplineEffect
Parameters
Type | Name | Description |
---|---|---|
System.UInt32 | samplerate | effect playback samplerate |
System.Boolean | stereo | effect playback stereo |
Odin.OdinApmConfig | config | configuration settings for apm |
InsertApmEffect(uint, uint, bool)
Insert a apm effect to native pipeline
Returns
Odin.ApmEffect
: OdinNative.Wrapper.Media.ApmEffect
Parameters
Type | Name | Description |
---|---|---|
System.UInt32 | indexId | effect index |
System.UInt32 | samplerate | effect playback samplerate |
System.Boolean | stereo | effect playback stereo |
AddCustomEffect<T>(PipelineCallback<T>, T)
Insert a custom effect and sets the OdinNative.Wrapper.Media.CustomEffect
where T
marks Serialize/Deserialize structures
Returns
Odin.CustomEffect<<T>>
: OdinNative.Wrapper.Media.CustomEffect
instance of base OdinNative.Wrapper.Media.PiplineEffect : OdinNative.Wrapper.Media.IPiplineEffect
Parameters
Type | Name | Description |
---|---|---|
Odin.PipelineCallback<<T>> | callback | effect callback |
<T> | userData | effect callback userdata of type T |
Type Parameters
Name | Description |
---|---|
T | userdata structure |
InsertCustomEffect<T>(uint, OdinCustomEffectCallbackDelegate, IntPtr)
Insert a custom effect to native pipeline
Returns
Odin.CustomEffect<<T>>
: OdinNative.Wrapper.Media.CustomEffect
Parameters
Type | Name | Description |
---|---|---|
System.UInt32 | indexId | effect index |
Odin.OdinCustomEffectCallbackDelegate | callback | effect callback |
Odin.IntPtr | user_data | effect callback userdata |
Type Parameters
Name | Description |
---|---|
T | userdata structure |
AddVadEffect(out VadEffect)
Insert a vad effect
Returns
System.Boolean
: OdinNative.Wrapper.Media.VadEffect instance of base OdinNative.Wrapper.Media.PiplineEffect : OdinNative.Wrapper.Media.IPiplineEffect
Parameters
Type | Name | Description |
---|---|---|
Odin.VadEffect | effect | configuration settings for vad |
InsertVadEffect(uint)
Insert a vad effect to native pipeline
Returns
Odin.VadEffect
: OdinNative.Wrapper.Media.VadEffect
Parameters
Type | Name | Description |
---|---|---|
System.UInt32 | indexId | effect index |
MoveEffect(uint, uint, ref uint)
Moves a effect in the native pipeline to a new index
Returns
System.Boolean
Parameters
Type | Name | Description |
---|---|---|
System.UInt32 | effectId | native effect id |
System.UInt32 | oldIndexId | OdinNative.Wrapper.MediaPipeline._Effects index id |
System.UInt32 | newIndexId | native index id |
RemoveEffect(uint)
Removes a effect from the native pipeline
Returns
System.Boolean
: true on removed or false
Parameters
Type | Name | Description |
---|---|---|
System.UInt32 | effectId | effect id |