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_AUDIO_ABNORMAL_INFO_T

### Structure Definition

C++C#

    1
    2
    3
    4
    5
    6
    7
    8
    typedef struct
    {
        int nSoundLevel;
        int nBackgroundLevel;
        unsigned char byAlarm;
        unsigned char byAbnormalType;
        unsigned char byReverse[2];
    } NET_SDK_AUDIO_ABNORMAL_INFO_T;

     1
     2
     3
     4
     5
     6
     7
     8
     9
    10
    [StructLayout(LayoutKind.Sequential, Pack = 4)]
    public struct NET_SDK_AUDIO_ABNORMAL_INFO_T
    {
        public Int32 nSoundLevel;
        public Int32 nBackgroundLevel;
        public byte byAlarm;
        public byte byAbnormalType;
        [MarshalAs(UnmanagedType.ByValArray, ArraySubType = UnmanagedType.U1, SizeConst = 2)]
        public byte[] byReverse;
    }

### Function Description

Abnormal sound alarm information structure.

### Member Description

Member | Type | Remark
--- | --- | ---
nSoundLevel | int | Sound intensity.
nBackgroundLevel | int | Background sound intensity (not returned in IPC).
byAlarm | unsigned char | Whether to issue an alarm.
byAbnormalType | unsigned char | Abnormal type, 0: initial value; 1: steep rise, 2: steep drop; 3: abnormal sound pickup.
byReverse | unsigned char[2] | Reserved field.

Error Code