Skip to content
This SDK only works with devices released within the past 3 years. We regularly optimize and update the SDK to ensure compatibility and performance. We do not guarantee compatibility or provide technical support for devices older than 3 years.

# NET_SDK_InitAudioEncoder

### Interface Definition

C++C#

    1
    2
    3
    POINTERHANDLE NET_SDK_InitAudioEncoder(
        void* pAudioInfo,
        LONG infoLen);

    1
    2
    3
    public static extern POINTERHANDLE NET_SDK_InitAudioEncoder(
        IntPtr pAudioInfo,
        int infoLen);

### Function Description

Initialize the audio encoder.

### Parameter Description

Parameters | Type | Remark
--- | --- | ---
pAudioInfoin | void* | Pointer to audio information.
infoLenin | LONG | The length of the audio message.

### Return Value

- Type：POINTERHANDLE

- Remark：-1 indicates failure, other values ​​are audio codec handles.

### Remarks

None

Error Code