Skip to main content
Version: 2.x

Class NativeLibraryMethods

Import odin function signatures to wrapper delegates

Assembly: cs.temp.dll.dll
Declaration
public class NativeLibraryMethods : NativeMethods<OdinLibraryHandle>

Inheritance: System.Object -> OdinNative.Core.Imports.NativeMethods<T>

Methods

ConnectionPoolCreate(OdinConnectionPoolSettings, out OdinConnectionPoolHandle)

OdinNative.Core.Imports.NativeLibraryMethods.OdinConnectionPoolCreateDelegate

Declaration
public OdinError ConnectionPoolCreate(OdinConnectionPoolSettings settings, out OdinConnectionPoolHandle connection_pool)
Returns

Odin.OdinError

Parameters
TypeName
Odin.OdinConnectionPoolSettingssettings
OdinNative.Core.Imports.OdinConnectionPoolHandleconnection_pool

ConnectionPoolFree(OdinConnectionPoolHandle)

OdinNative.Core.Imports.NativeLibraryMethods.OdinConnectionPoolFreeDelegate

Declaration
public void ConnectionPoolFree(OdinConnectionPoolHandle connection_pool)
Parameters
TypeName
OdinNative.Core.Imports.OdinConnectionPoolHandleconnection_pool

DecoderCreate(UInt16, UInt32, bool, out OdinDecoderHandle)

OdinNative.Core.Imports.NativeLibraryMethods.OdinDecoderCreateDelegate

Declaration
public OdinError DecoderCreate(UInt16 media_id, UInt32 sample_rate, bool stereo, out OdinDecoderHandle decoder)
Returns

Odin.OdinError

Parameters
TypeName
Odin.UInt16media_id
Odin.UInt32sample_rate
System.Booleanstereo
OdinNative.Core.Imports.OdinDecoderHandledecoder

DecoderFree(OdinDecoderHandle)

OdinNative.Core.Imports.NativeLibraryMethods.OdinDecoderFreeDelegate

Declaration
public void DecoderFree(OdinDecoderHandle decoder)
Parameters
TypeName
OdinNative.Core.Imports.OdinDecoderHandledecoder

DecoderGetPipeline(OdinDecoderHandle)

OdinNative.Core.Imports.NativeLibraryMethods.OdinDecoderGetPipelineDelegate

Declaration
public OdinPipelineHandle DecoderGetPipeline(OdinDecoderHandle decoder)
Returns

OdinNative.Core.Imports.OdinPipelineHandle

Parameters
TypeName
OdinNative.Core.Imports.OdinDecoderHandledecoder

DecoderPop(OdinDecoderHandle, ref float[], out bool)

OdinNative.Core.Imports.NativeLibraryMethods.OdinDecoderPopDelegate

Declaration
public OdinError DecoderPop(OdinDecoderHandle decoder, ref float[] samples, out bool isSilent)
Returns

Odin.OdinError

Parameters
TypeName
OdinNative.Core.Imports.OdinDecoderHandledecoder
System.Single[]samples
System.BooleanisSilent

DecoderPush(IntPtr, IntPtr, uint)

OdinNative.Core.Imports.NativeLibraryMethods.OdinDecoderPushDelegate

Declaration
protected OdinError DecoderPush(IntPtr decoder, IntPtr samples, uint samplesCount)
Returns

Odin.OdinError

Parameters
TypeName
Odin.IntPtrdecoder
Odin.IntPtrsamples
System.UInt32samplesCount

DecoderPush(IntPtr, float[])

OdinNative.Core.Imports.NativeLibraryMethods.OdinDecoderPushDelegate

Declaration
public OdinError DecoderPush(IntPtr decoder, float[] samples)
Returns

Odin.OdinError

Parameters
TypeName
Odin.IntPtrdecoder
System.Single[]samples

EncoderCreate(UInt32, bool, out OdinEncoderHandle)

OdinNative.Core.Imports.NativeLibraryMethods.OdinEncoderCreateDelegate

Declaration
public OdinError EncoderCreate(UInt32 sample_rate, bool stereo, out OdinEncoderHandle encoder)
Returns

Odin.OdinError

Parameters
TypeName
Odin.UInt32sample_rate
System.Booleanstereo
OdinNative.Core.Imports.OdinEncoderHandleencoder

EncoderCreateEx(UInt32, bool, bool, UInt32, out OdinEncoderHandle)

OdinNative.Core.Imports.NativeLibraryMethods.OdinEncoderCreateExDelegate

Declaration
public OdinError EncoderCreateEx(UInt32 sample_rate, bool stereo, bool application_voip, UInt32 bitrate_kbps, out OdinEncoderHandle encoder)
Returns

Odin.OdinError

Parameters
TypeName
Odin.UInt32sample_rate
System.Booleanstereo
System.Booleanapplication_voip
Odin.UInt32bitrate_kbps
OdinNative.Core.Imports.OdinEncoderHandleencoder

EncoderFree(OdinEncoderHandle)

OdinNative.Core.Imports.NativeLibraryMethods.OdinEncoderFreeDelegate

Declaration
public void EncoderFree(OdinEncoderHandle encoder)
Parameters
TypeName
OdinNative.Core.Imports.OdinEncoderHandleencoder

EncoderGetPipeline(OdinEncoderHandle)

OdinNative.Core.Imports.NativeLibraryMethods.OdinEncoderGetPipelineDelegate

Declaration
public OdinPipelineHandle EncoderGetPipeline(OdinEncoderHandle decoder)
Returns

OdinNative.Core.Imports.OdinPipelineHandle

Parameters
TypeName
OdinNative.Core.Imports.OdinEncoderHandledecoder

EncoderPop(OdinEncoderHandle, ushort[], ref byte[])

OdinNative.Core.Imports.NativeLibraryMethods.OdinEncoderPopDelegate

Declaration
public OdinError EncoderPop(OdinEncoderHandle encoder, ushort[] mediaIds, ref byte[] datagram)
Returns

Odin.OdinError

Parameters
TypeName
OdinNative.Core.Imports.OdinEncoderHandleencoder
System.UInt16[]mediaIds
System.Byte[]datagram

EncoderPush(OdinEncoderHandle, float[])

OdinNative.Core.Imports.NativeLibraryMethods.OdinEncoderPushDelegate

Declaration
public OdinError EncoderPush(OdinEncoderHandle encoder, float[] samples)
Returns

Odin.OdinError

Parameters
TypeName
OdinNative.Core.Imports.OdinEncoderHandleencoder
System.Single[]samples

ErrorGetLastError()

OdinNative.Core.Imports.NativeLibraryMethods.OdinErrorGetLastErrorDelegate

Declaration
public string ErrorGetLastError()
Returns

System.String

ErrorResetLastError()

OdinNative.Core.Imports.NativeLibraryMethods.OdinErrorResetLastErrorDelegate

Declaration
public void ErrorResetLastError()

Initialize(string)

OdinNative.Core.Imports.NativeLibraryMethods.OdinInitializeDelegate

Declaration
public OdinError Initialize(string version = "2.0.0-beta-crypto2")
Returns

Odin.OdinError

Parameters
TypeName
System.Stringversion

PipelineGetEffectCount(OdinPipelineHandle)

OdinNative.Core.Imports.NativeLibraryMethods.OdinPipelineGetEffectCountDelegate

Declaration
public uint PipelineGetEffectCount(OdinPipelineHandle pipeline)
Returns

System.UInt32

Parameters
TypeName
OdinNative.Core.Imports.OdinPipelineHandlepipeline

PipelineGetEffectId(OdinPipelineHandle, uint, out uint)

OdinNative.Core.Imports.NativeLibraryMethods.OdinPipelineGetEffectIdDelegate

Declaration
public OdinError PipelineGetEffectId(OdinPipelineHandle pipeline, uint index, out uint out_effect_id)
Returns

Odin.OdinError

Parameters
TypeName
OdinNative.Core.Imports.OdinPipelineHandlepipeline
System.UInt32index
System.UInt32out_effect_id

PipelineGetEffectIndex(OdinPipelineHandle, uint, out uint)

OdinNative.Core.Imports.NativeLibraryMethods.OdinPipelineGetEffectIndexDelegate

Declaration
public OdinError PipelineGetEffectIndex(OdinPipelineHandle pipeline, uint effect_id, out uint out_index)
Returns

Odin.OdinError

Parameters
TypeName
OdinNative.Core.Imports.OdinPipelineHandlepipeline
System.UInt32effect_id
System.UInt32out_index

PipelineGetEffectType(OdinPipelineHandle, uint, out OdinEffectType)

OdinNative.Core.Imports.NativeLibraryMethods.OdinPipelineGetEffectTypeDelegate

Declaration
public OdinError PipelineGetEffectType(OdinPipelineHandle pipeline, uint effect_id, out OdinEffectType out_effect_type)
Returns

Odin.OdinError

Parameters
TypeName
OdinNative.Core.Imports.OdinPipelineHandlepipeline
System.UInt32effect_id
Odin.OdinEffectTypeout_effect_type

PipelineGetVadConfig(OdinPipelineHandle, uint, out OdinVadConfig)

OdinNative.Core.Imports.NativeLibraryMethods.OdinPipelineGetVadConfigDelegate

Declaration
public OdinError PipelineGetVadConfig(OdinPipelineHandle pipeline, uint effect_id, out OdinVadConfig out_config)
Returns

Odin.OdinError

Parameters
TypeName
OdinNative.Core.Imports.OdinPipelineHandlepipeline
System.UInt32effect_id
Odin.OdinVadConfigout_config

PipelineInsertApmEffect(OdinPipelineHandle, uint, uint, bool, out uint)

OdinNative.Core.Imports.NativeLibraryMethods.OdinPipelineInsertApmEffectDelegate

Declaration
public OdinError PipelineInsertApmEffect(OdinPipelineHandle pipeline, uint index, uint playback_sample_rate, bool playback_stereo, out uint out_effect_id)
Returns

Odin.OdinError

Parameters
TypeName
OdinNative.Core.Imports.OdinPipelineHandlepipeline
System.UInt32index
System.UInt32playback_sample_rate
System.Booleanplayback_stereo
System.UInt32out_effect_id

PipelineInsertCustomEffect(OdinPipelineHandle, uint, OdinCustomEffectCallbackDelegate, IntPtr, out uint)

OdinNative.Core.Imports.NativeLibraryMethods.PipelineInsertCustomEffectDelegate

Declaration
public OdinError PipelineInsertCustomEffect(OdinPipelineHandle pipeline, uint index, NativeLibraryMethods.OdinCustomEffectCallbackDelegate callback, IntPtr user_data, out uint out_effect_id)
Returns

Odin.OdinError

Parameters
TypeName
OdinNative.Core.Imports.OdinPipelineHandlepipeline
System.UInt32index
OdinNative.Core.Imports.NativeLibraryMethods.OdinCustomEffectCallbackDelegatecallback
Odin.IntPtruser_data
System.UInt32out_effect_id

PipelineInsertVadEffect(OdinPipelineHandle, uint, out uint)

OdinNative.Core.Imports.NativeLibraryMethods.OdinPipelineInsertVadEffectDelegate

Declaration
public OdinError PipelineInsertVadEffect(OdinPipelineHandle pipeline, uint index, out uint out_effect_id)
Returns

Odin.OdinError

Parameters
TypeName
OdinNative.Core.Imports.OdinPipelineHandlepipeline
System.UInt32index
System.UInt32out_effect_id

PipelineMoveEffect(OdinPipelineHandle, uint, UInt64)

OdinNative.Core.Imports.NativeLibraryMethods.OdinPipelineMoveEffectDelegate

Declaration
public OdinError PipelineMoveEffect(OdinPipelineHandle pipeline, uint effect_id, UInt64 new_index)
Returns

Odin.OdinError

Parameters
TypeName
OdinNative.Core.Imports.OdinPipelineHandlepipeline
System.UInt32effect_id
Odin.UInt64new_index

PipelineRemoveEffect(OdinPipelineHandle, uint)

OdinNative.Core.Imports.NativeLibraryMethods.OdinPipelineRemoveEffectDelegate

Declaration
public OdinError PipelineRemoveEffect(OdinPipelineHandle pipeline, uint effect_id)
Returns

Odin.OdinError

Parameters
TypeName
OdinNative.Core.Imports.OdinPipelineHandlepipeline
System.UInt32effect_id

PipelineSetApmConfig(OdinPipelineHandle, uint, OdinApmConfig)

OdinNative.Core.Imports.NativeLibraryMethods.OdinPipelineSetApmConfigDelegate

Declaration
public OdinError PipelineSetApmConfig(OdinPipelineHandle pipeline, uint effect_id, OdinApmConfig config)
Returns

Odin.OdinError

Parameters
TypeName
OdinNative.Core.Imports.OdinPipelineHandlepipeline
System.UInt32effect_id
Odin.OdinApmConfigconfig

PipelineSetApmStreamDelay(OdinPipelineHandle, uint, UInt64)

OdinNative.Core.Imports.NativeLibraryMethods.OdinPipelineSetApmStreamDelayDelegate

Declaration
public OdinError PipelineSetApmStreamDelay(OdinPipelineHandle pipeline, uint effect_id, UInt64 ms)
Returns

Odin.OdinError

Parameters
TypeName
OdinNative.Core.Imports.OdinPipelineHandlepipeline
System.UInt32effect_id
Odin.UInt64ms

PipelineSetVadConfig(OdinPipelineHandle, uint, OdinVadConfig)

OdinNative.Core.Imports.NativeLibraryMethods.OdinPipelineSetVadConfigDelegate

Declaration
public OdinError PipelineSetVadConfig(OdinPipelineHandle pipeline, uint effect_id, OdinVadConfig config)
Returns

Odin.OdinError

Parameters
TypeName
OdinNative.Core.Imports.OdinPipelineHandlepipeline
System.UInt32effect_id
Odin.OdinVadConfigconfig

PipelineUpdateApmPlayback(OdinPipelineHandle, uint, float[])

OdinNative.Core.Imports.NativeLibraryMethods.OdinPipelineUpdateApmPlaybackDelegate

Declaration
public OdinError PipelineUpdateApmPlayback(OdinPipelineHandle pipeline, uint effect_id, float[] audio)
Returns

Odin.OdinError

Parameters
TypeName
OdinNative.Core.Imports.OdinPipelineHandlepipeline
System.UInt32effect_id
System.Single[]audio

RoomClose(OdinRoomHandle)

OdinNative.Core.Imports.NativeLibraryMethods.OdinRoomCloseDelegate

Declaration
public void RoomClose(OdinRoomHandle room)
Parameters
TypeName
OdinNative.Core.Imports.OdinRoomHandleroom

RoomCreate(OdinConnectionPoolHandle, string, string, out OdinRoomHandle)

OdinNative.Core.Imports.NativeLibraryMethods.OdinRoomCreateDelegate

Declaration
public OdinError RoomCreate(OdinConnectionPoolHandle connection_pool, string gateway, string token, out OdinRoomHandle roomHandle)
Returns

Odin.OdinError

Parameters
TypeName
OdinNative.Core.Imports.OdinConnectionPoolHandleconnection_pool
System.Stringgateway
System.Stringtoken
OdinNative.Core.Imports.OdinRoomHandleroomHandle

RoomCreateEx(OdinConnectionPoolHandle, string, string, out OdinRoomHandle, string, byte[], float, float, float, OdinCipherHandle)

OdinNative.Core.Imports.NativeLibraryMethods.OdinRoomCreateExDelegate

Declaration
public OdinError RoomCreateEx(OdinConnectionPoolHandle connection_pool, string gateway, string token, out OdinRoomHandle roomHandle, string room_name = null, byte[] user_data = null, float positionX = 0, float positionY = 0, float positionZ = 0, OdinCipherHandle cipher = null)
Returns

Odin.OdinError

Parameters
TypeName
OdinNative.Core.Imports.OdinConnectionPoolHandleconnection_pool
System.Stringgateway
System.Stringtoken
OdinNative.Core.Imports.OdinRoomHandleroomHandle
System.Stringroom_name
System.Byte[]user_data
System.SinglepositionX
System.SinglepositionY
System.SinglepositionZ
OdinNative.Core.Imports.OdinCipherHandlecipher

RoomFree(OdinRoomHandle)

OdinNative.Core.Imports.NativeLibraryMethods.OdinRoomFreeDelegate

Declaration
public void RoomFree(OdinRoomHandle room)
Parameters
TypeName
OdinNative.Core.Imports.OdinRoomHandleroom

RoomGetConnectionId(OdinRoomHandle)

OdinNative.Core.Imports.NativeLibraryMethods.OdinRoomGetConnectionIdDelegate

Declaration
public UInt64 RoomGetConnectionId(OdinRoomHandle room)
Returns

Odin.UInt64

Parameters
TypeName
OdinNative.Core.Imports.OdinRoomHandleroom

RoomGetId(OdinRoomHandle)

OdinNative.Core.Imports.NativeLibraryMethods.OdinRoomGetIdDelegate

Declaration
public UInt64 RoomGetId(OdinRoomHandle room)
Returns

Odin.UInt64

Parameters
TypeName
OdinNative.Core.Imports.OdinRoomHandleroom

RoomGetName(OdinRoomHandle, out string)

OdinNative.Core.Imports.NativeLibraryMethods.OdinRoomGetNameDelegate

Declaration
public OdinError RoomGetName(OdinRoomHandle room, out string roomName)
Returns

Odin.OdinError

Parameters
TypeName
OdinNative.Core.Imports.OdinRoomHandleroom
System.StringroomName

RoomResendUserData(OdinRoomHandle)

OdinNative.Core.Imports.NativeLibraryMethods.OdinRoomResendUserDataDelegate

Declaration
public OdinError RoomResendUserData(OdinRoomHandle room)
Returns

Odin.OdinError

Parameters
TypeName
OdinNative.Core.Imports.OdinRoomHandleroom

RoomSendDatagram(OdinRoomHandle, IntPtr, uint)

Declaration
protected OdinError RoomSendDatagram(OdinRoomHandle room, IntPtr bytes, uint bytes_length)
Returns

Odin.OdinError

Parameters
TypeName
OdinNative.Core.Imports.OdinRoomHandleroom
Odin.IntPtrbytes
System.UInt32bytes_length

RoomSendDatagram(OdinRoomHandle, byte[])

OdinNative.Core.Imports.NativeLibraryMethods.OdinRoomSendDatagramDelegate

Declaration
public OdinError RoomSendDatagram(OdinRoomHandle room, byte[] datagram)
Returns

Odin.OdinError

Parameters
TypeName
OdinNative.Core.Imports.OdinRoomHandleroom
System.Byte[]datagram

RoomSendRpc(OdinRoomHandle, byte[])

OdinNative.Core.Imports.NativeLibraryMethods.OdinRoomSendRpcDelegate

Declaration
public OdinError RoomSendRpc(OdinRoomHandle room, byte[] bytes)
Returns

Odin.OdinError

Parameters
TypeName
OdinNative.Core.Imports.OdinRoomHandleroom
System.Byte[]bytes

RoomSendLoopbackRpc(OdinRoomHandle, byte[])

OdinNative.Core.Imports.NativeLibraryMethods.OdinRoomSendLoopbackRpcDelegate

Declaration
public OdinError RoomSendLoopbackRpc(OdinRoomHandle room, byte[] bytes)
Returns

Odin.OdinError

Parameters
TypeName
OdinNative.Core.Imports.OdinRoomHandleroom
System.Byte[]bytes

Shutdown()

OdinNative.Core.Imports.NativeLibraryMethods.OdinShutdownDelegate

Declaration
public void Shutdown()

TokenGeneratorCreate(string, out OdinTokenGeneratorHandle)

OdinNative.Core.Imports.NativeLibraryMethods.OdinTokenGeneratorCreateDelegate

Declaration
public OdinError TokenGeneratorCreate(string access_key, out OdinTokenGeneratorHandle token_generator)
Returns

Odin.OdinError

Parameters
TypeName
System.Stringaccess_key
OdinNative.Core.Imports.OdinTokenGeneratorHandletoken_generator

TokenGeneratorFree(OdinTokenGeneratorHandle)

OdinNative.Core.Imports.NativeLibraryMethods.OdinTokenGeneratorFreeDelegate

Declaration
public void TokenGeneratorFree(OdinTokenGeneratorHandle token_generator)
Parameters
TypeName
OdinNative.Core.Imports.OdinTokenGeneratorHandletoken_generator

TokenGeneratorGetAccessKey(OdinTokenGeneratorHandle, out string)

OdinNative.Core.Imports.NativeLibraryMethods.OdinTokenGeneratorGetAccessKeyDelegate

Declaration
public OdinError TokenGeneratorGetAccessKey(OdinTokenGeneratorHandle token_generator, out string accessKey)
Returns

Odin.OdinError

Parameters
TypeName
OdinNative.Core.Imports.OdinTokenGeneratorHandletoken_generator
System.StringaccessKey

TokenGeneratorGetKeyId(OdinTokenGeneratorHandle, out string)

OdinNative.Core.Imports.NativeLibraryMethods.OdinTokenGeneratorGetKeyIdDelegate

Declaration
public OdinError TokenGeneratorGetKeyId(OdinTokenGeneratorHandle token_generator, out string keyId)
Returns

Odin.OdinError

Parameters
TypeName
OdinNative.Core.Imports.OdinTokenGeneratorHandletoken_generator
System.StringkeyId

TokenGeneratorSign(OdinTokenGeneratorHandle, string, out string)

OdinNative.Core.Imports.NativeLibraryMethods.OdinTokenGeneratorSignDelegate

Declaration
public OdinError TokenGeneratorSign(OdinTokenGeneratorHandle token_generator, string body, out string token)
Returns

Odin.OdinError

Parameters
TypeName
OdinNative.Core.Imports.OdinTokenGeneratorHandletoken_generator
System.Stringbody
System.Stringtoken