Class NativeLibraryMethods
Import odin function signatures to wrapper delegates
Assembly: cs.temp.dll.dll
Inheritance: System.Object
-> OdinNative.Core.Imports.NativeMethods<T>
Methods
ConnectionPoolCreate(OdinConnectionPoolSettings, out OdinConnectionPoolHandle)
OdinNative.Core.Imports.NativeLibraryMethods.OdinConnectionPoolCreateDelegate
Returns
Odin.OdinError
Parameters
Type | Name |
---|---|
Odin.OdinConnectionPoolSettings | settings |
OdinNative.Core.Imports.OdinConnectionPoolHandle | connection_pool |
ConnectionPoolFree(OdinConnectionPoolHandle)
OdinNative.Core.Imports.NativeLibraryMethods.OdinConnectionPoolFreeDelegate
Parameters
Type | Name |
---|---|
OdinNative.Core.Imports.OdinConnectionPoolHandle | connection_pool |
DecoderCreate(UInt16, UInt32, bool, out OdinDecoderHandle)
OdinNative.Core.Imports.NativeLibraryMethods.OdinDecoderCreateDelegate
Returns
Odin.OdinError
Parameters
Type | Name |
---|---|
Odin.UInt16 | media_id |
Odin.UInt32 | sample_rate |
System.Boolean | stereo |
OdinNative.Core.Imports.OdinDecoderHandle | decoder |
DecoderFree(OdinDecoderHandle)
OdinNative.Core.Imports.NativeLibraryMethods.OdinDecoderFreeDelegate
Parameters
Type | Name |
---|---|
OdinNative.Core.Imports.OdinDecoderHandle | decoder |
DecoderGetPipeline(OdinDecoderHandle)
OdinNative.Core.Imports.NativeLibraryMethods.OdinDecoderGetPipelineDelegate
Returns
OdinNative.Core.Imports.OdinPipelineHandle
Parameters
Type | Name |
---|---|
OdinNative.Core.Imports.OdinDecoderHandle | decoder |
DecoderPop(OdinDecoderHandle, ref float[], out bool)
OdinNative.Core.Imports.NativeLibraryMethods.OdinDecoderPopDelegate
Returns
Odin.OdinError
Parameters
Type | Name |
---|---|
OdinNative.Core.Imports.OdinDecoderHandle | decoder |
System.Single[] | samples |
System.Boolean | isSilent |
DecoderPush(IntPtr, IntPtr, uint)
OdinNative.Core.Imports.NativeLibraryMethods.OdinDecoderPushDelegate
Returns
Odin.OdinError
Parameters
Type | Name |
---|---|
Odin.IntPtr | decoder |
Odin.IntPtr | samples |
System.UInt32 | samplesCount |
DecoderPush(IntPtr, float[])
OdinNative.Core.Imports.NativeLibraryMethods.OdinDecoderPushDelegate
Returns
Odin.OdinError
Parameters
Type | Name |
---|---|
Odin.IntPtr | decoder |
System.Single[] | samples |
EncoderCreate(UInt32, bool, out OdinEncoderHandle)
OdinNative.Core.Imports.NativeLibraryMethods.OdinEncoderCreateDelegate
Returns
Odin.OdinError
Parameters
Type | Name |
---|---|
Odin.UInt32 | sample_rate |
System.Boolean | stereo |
OdinNative.Core.Imports.OdinEncoderHandle | encoder |
EncoderCreateEx(UInt32, bool, bool, UInt32, out OdinEncoderHandle)
OdinNative.Core.Imports.NativeLibraryMethods.OdinEncoderCreateExDelegate
Returns
Odin.OdinError
Parameters
Type | Name |
---|---|
Odin.UInt32 | sample_rate |
System.Boolean | stereo |
System.Boolean | application_voip |
Odin.UInt32 | bitrate_kbps |
OdinNative.Core.Imports.OdinEncoderHandle | encoder |
EncoderFree(OdinEncoderHandle)
OdinNative.Core.Imports.NativeLibraryMethods.OdinEncoderFreeDelegate
Parameters
Type | Name |
---|---|
OdinNative.Core.Imports.OdinEncoderHandle | encoder |
EncoderGetPipeline(OdinEncoderHandle)
OdinNative.Core.Imports.NativeLibraryMethods.OdinEncoderGetPipelineDelegate
Returns
OdinNative.Core.Imports.OdinPipelineHandle
Parameters
Type | Name |
---|---|
OdinNative.Core.Imports.OdinEncoderHandle | decoder |
EncoderPop(OdinEncoderHandle, ushort[], ref byte[])
OdinNative.Core.Imports.NativeLibraryMethods.OdinEncoderPopDelegate
Returns
Odin.OdinError
Parameters
Type | Name |
---|---|
OdinNative.Core.Imports.OdinEncoderHandle | encoder |
System.UInt16[] | mediaIds |
System.Byte[] | datagram |
EncoderPush(OdinEncoderHandle, float[])
OdinNative.Core.Imports.NativeLibraryMethods.OdinEncoderPushDelegate
Returns
Odin.OdinError
Parameters
Type | Name |
---|---|
OdinNative.Core.Imports.OdinEncoderHandle | encoder |
System.Single[] | samples |
ErrorGetLastError()
OdinNative.Core.Imports.NativeLibraryMethods.OdinErrorGetLastErrorDelegate
Returns
System.String
ErrorResetLastError()
OdinNative.Core.Imports.NativeLibraryMethods.OdinErrorResetLastErrorDelegate
Initialize(string)
OdinNative.Core.Imports.NativeLibraryMethods.OdinInitializeDelegate
Returns
Odin.OdinError
Parameters
Type | Name |
---|---|
System.String | version |
PipelineGetEffectCount(OdinPipelineHandle)
OdinNative.Core.Imports.NativeLibraryMethods.OdinPipelineGetEffectCountDelegate
Returns
System.UInt32
Parameters
Type | Name |
---|---|
OdinNative.Core.Imports.OdinPipelineHandle | pipeline |
PipelineGetEffectId(OdinPipelineHandle, uint, out uint)
OdinNative.Core.Imports.NativeLibraryMethods.OdinPipelineGetEffectIdDelegate
Returns
Odin.OdinError
Parameters
Type | Name |
---|---|
OdinNative.Core.Imports.OdinPipelineHandle | pipeline |
System.UInt32 | index |
System.UInt32 | out_effect_id |
PipelineGetEffectIndex(OdinPipelineHandle, uint, out uint)
OdinNative.Core.Imports.NativeLibraryMethods.OdinPipelineGetEffectIndexDelegate
Returns
Odin.OdinError
Parameters
Type | Name |
---|---|
OdinNative.Core.Imports.OdinPipelineHandle | pipeline |
System.UInt32 | effect_id |
System.UInt32 | out_index |
PipelineGetEffectType(OdinPipelineHandle, uint, out OdinEffectType)
OdinNative.Core.Imports.NativeLibraryMethods.OdinPipelineGetEffectTypeDelegate
Returns
Odin.OdinError
Parameters
Type | Name |
---|---|
OdinNative.Core.Imports.OdinPipelineHandle | pipeline |
System.UInt32 | effect_id |
Odin.OdinEffectType | out_effect_type |
PipelineGetVadConfig(OdinPipelineHandle, uint, out OdinVadConfig)
OdinNative.Core.Imports.NativeLibraryMethods.OdinPipelineGetVadConfigDelegate
Returns
Odin.OdinError
Parameters
Type | Name |
---|---|
OdinNative.Core.Imports.OdinPipelineHandle | pipeline |
System.UInt32 | effect_id |
Odin.OdinVadConfig | out_config |
PipelineInsertApmEffect(OdinPipelineHandle, uint, uint, bool, out uint)
OdinNative.Core.Imports.NativeLibraryMethods.OdinPipelineInsertApmEffectDelegate
Returns
Odin.OdinError
Parameters
Type | Name |
---|---|
OdinNative.Core.Imports.OdinPipelineHandle | pipeline |
System.UInt32 | index |
System.UInt32 | playback_sample_rate |
System.Boolean | playback_stereo |
System.UInt32 | out_effect_id |
PipelineInsertCustomEffect(OdinPipelineHandle, uint, OdinCustomEffectCallbackDelegate, IntPtr, out uint)
OdinNative.Core.Imports.NativeLibraryMethods.PipelineInsertCustomEffectDelegate
Returns
Odin.OdinError
Parameters
Type | Name |
---|---|
OdinNative.Core.Imports.OdinPipelineHandle | pipeline |
System.UInt32 | index |
OdinNative.Core.Imports.NativeLibraryMethods.OdinCustomEffectCallbackDelegate | callback |
Odin.IntPtr | user_data |
System.UInt32 | out_effect_id |
PipelineInsertVadEffect(OdinPipelineHandle, uint, out uint)
OdinNative.Core.Imports.NativeLibraryMethods.OdinPipelineInsertVadEffectDelegate
Returns
Odin.OdinError
Parameters
Type | Name |
---|---|
OdinNative.Core.Imports.OdinPipelineHandle | pipeline |
System.UInt32 | index |
System.UInt32 | out_effect_id |
PipelineMoveEffect(OdinPipelineHandle, uint, UInt64)
OdinNative.Core.Imports.NativeLibraryMethods.OdinPipelineMoveEffectDelegate
Returns
Odin.OdinError
Parameters
Type | Name |
---|---|
OdinNative.Core.Imports.OdinPipelineHandle | pipeline |
System.UInt32 | effect_id |
Odin.UInt64 | new_index |
PipelineRemoveEffect(OdinPipelineHandle, uint)
OdinNative.Core.Imports.NativeLibraryMethods.OdinPipelineRemoveEffectDelegate
Returns
Odin.OdinError
Parameters
Type | Name |
---|---|
OdinNative.Core.Imports.OdinPipelineHandle | pipeline |
System.UInt32 | effect_id |
PipelineSetApmConfig(OdinPipelineHandle, uint, OdinApmConfig)
OdinNative.Core.Imports.NativeLibraryMethods.OdinPipelineSetApmConfigDelegate
Returns
Odin.OdinError
Parameters
Type | Name |
---|---|
OdinNative.Core.Imports.OdinPipelineHandle | pipeline |
System.UInt32 | effect_id |
Odin.OdinApmConfig | config |
PipelineSetApmStreamDelay(OdinPipelineHandle, uint, UInt64)
OdinNative.Core.Imports.NativeLibraryMethods.OdinPipelineSetApmStreamDelayDelegate
Returns
Odin.OdinError
Parameters
Type | Name |
---|---|
OdinNative.Core.Imports.OdinPipelineHandle | pipeline |
System.UInt32 | effect_id |
Odin.UInt64 | ms |
PipelineSetVadConfig(OdinPipelineHandle, uint, OdinVadConfig)
OdinNative.Core.Imports.NativeLibraryMethods.OdinPipelineSetVadConfigDelegate
Returns
Odin.OdinError
Parameters
Type | Name |
---|---|
OdinNative.Core.Imports.OdinPipelineHandle | pipeline |
System.UInt32 | effect_id |
Odin.OdinVadConfig | config |
PipelineUpdateApmPlayback(OdinPipelineHandle, uint, float[])
OdinNative.Core.Imports.NativeLibraryMethods.OdinPipelineUpdateApmPlaybackDelegate
Returns
Odin.OdinError
Parameters
Type | Name |
---|---|
OdinNative.Core.Imports.OdinPipelineHandle | pipeline |
System.UInt32 | effect_id |
System.Single[] | audio |
RoomClose(OdinRoomHandle)
OdinNative.Core.Imports.NativeLibraryMethods.OdinRoomCloseDelegate
Parameters
Type | Name |
---|---|
OdinNative.Core.Imports.OdinRoomHandle | room |
RoomCreate(OdinConnectionPoolHandle, string, string, out OdinRoomHandle)
OdinNative.Core.Imports.NativeLibraryMethods.OdinRoomCreateDelegate
Returns
Odin.OdinError
Parameters
Type | Name |
---|---|
OdinNative.Core.Imports.OdinConnectionPoolHandle | connection_pool |
System.String | gateway |
System.String | token |
OdinNative.Core.Imports.OdinRoomHandle | roomHandle |
RoomCreateEx(OdinConnectionPoolHandle, string, string, out OdinRoomHandle, string, byte[], float, float, float, OdinCipherHandle)
OdinNative.Core.Imports.NativeLibraryMethods.OdinRoomCreateExDelegate
Returns
Odin.OdinError
Parameters
Type | Name |
---|---|
OdinNative.Core.Imports.OdinConnectionPoolHandle | connection_pool |
System.String | gateway |
System.String | token |
OdinNative.Core.Imports.OdinRoomHandle | roomHandle |
System.String | room_name |
System.Byte[] | user_data |
System.Single | positionX |
System.Single | positionY |
System.Single | positionZ |
OdinNative.Core.Imports.OdinCipherHandle | cipher |
RoomFree(OdinRoomHandle)
OdinNative.Core.Imports.NativeLibraryMethods.OdinRoomFreeDelegate
Parameters
Type | Name |
---|---|
OdinNative.Core.Imports.OdinRoomHandle | room |
RoomGetConnectionId(OdinRoomHandle)
OdinNative.Core.Imports.NativeLibraryMethods.OdinRoomGetConnectionIdDelegate
Returns
Odin.UInt64
Parameters
Type | Name |
---|---|
OdinNative.Core.Imports.OdinRoomHandle | room |
RoomGetId(OdinRoomHandle)
OdinNative.Core.Imports.NativeLibraryMethods.OdinRoomGetIdDelegate
Returns
Odin.UInt64
Parameters
Type | Name |
---|---|
OdinNative.Core.Imports.OdinRoomHandle | room |
RoomGetName(OdinRoomHandle, out string)
OdinNative.Core.Imports.NativeLibraryMethods.OdinRoomGetNameDelegate
Returns
Odin.OdinError
Parameters
Type | Name |
---|---|
OdinNative.Core.Imports.OdinRoomHandle | room |
System.String | roomName |
RoomResendUserData(OdinRoomHandle)
OdinNative.Core.Imports.NativeLibraryMethods.OdinRoomResendUserDataDelegate
Returns
Odin.OdinError
Parameters
Type | Name |
---|---|
OdinNative.Core.Imports.OdinRoomHandle | room |
RoomSendDatagram(OdinRoomHandle, IntPtr, uint)
Returns
Odin.OdinError
Parameters
Type | Name |
---|---|
OdinNative.Core.Imports.OdinRoomHandle | room |
Odin.IntPtr | bytes |
System.UInt32 | bytes_length |
RoomSendDatagram(OdinRoomHandle, byte[])
OdinNative.Core.Imports.NativeLibraryMethods.OdinRoomSendDatagramDelegate
Returns
Odin.OdinError
Parameters
Type | Name |
---|---|
OdinNative.Core.Imports.OdinRoomHandle | room |
System.Byte[] | datagram |
RoomSendRpc(OdinRoomHandle, byte[])
OdinNative.Core.Imports.NativeLibraryMethods.OdinRoomSendRpcDelegate
Returns
Odin.OdinError
Parameters
Type | Name |
---|---|
OdinNative.Core.Imports.OdinRoomHandle | room |
System.Byte[] | bytes |
RoomSendLoopbackRpc(OdinRoomHandle, byte[])
OdinNative.Core.Imports.NativeLibraryMethods.OdinRoomSendLoopbackRpcDelegate
Returns
Odin.OdinError
Parameters
Type | Name |
---|---|
OdinNative.Core.Imports.OdinRoomHandle | room |
System.Byte[] | bytes |
Shutdown()
OdinNative.Core.Imports.NativeLibraryMethods.OdinShutdownDelegate
TokenGeneratorCreate(string, out OdinTokenGeneratorHandle)
OdinNative.Core.Imports.NativeLibraryMethods.OdinTokenGeneratorCreateDelegate
Returns
Odin.OdinError
Parameters
Type | Name |
---|---|
System.String | access_key |
OdinNative.Core.Imports.OdinTokenGeneratorHandle | token_generator |
TokenGeneratorFree(OdinTokenGeneratorHandle)
OdinNative.Core.Imports.NativeLibraryMethods.OdinTokenGeneratorFreeDelegate
Parameters
Type | Name |
---|---|
OdinNative.Core.Imports.OdinTokenGeneratorHandle | token_generator |
TokenGeneratorGetAccessKey(OdinTokenGeneratorHandle, out string)
OdinNative.Core.Imports.NativeLibraryMethods.OdinTokenGeneratorGetAccessKeyDelegate
Returns
Odin.OdinError
Parameters
Type | Name |
---|---|
OdinNative.Core.Imports.OdinTokenGeneratorHandle | token_generator |
System.String | accessKey |
TokenGeneratorGetKeyId(OdinTokenGeneratorHandle, out string)
OdinNative.Core.Imports.NativeLibraryMethods.OdinTokenGeneratorGetKeyIdDelegate
Returns
Odin.OdinError
Parameters
Type | Name |
---|---|
OdinNative.Core.Imports.OdinTokenGeneratorHandle | token_generator |
System.String | keyId |
TokenGeneratorSign(OdinTokenGeneratorHandle, string, out string)
OdinNative.Core.Imports.NativeLibraryMethods.OdinTokenGeneratorSignDelegate
Returns
Odin.OdinError
Parameters
Type | Name |
---|---|
OdinNative.Core.Imports.OdinTokenGeneratorHandle | token_generator |
System.String | body |
System.String | token |