PCM_Sound_Tracks.h 824 Bytes
Newer Older
hu's avatar
hu committed
1 2 3 4 5 6 7 8 9 10 11 12


#ifndef _PCM_SOUND_TRACKS_H_
#define _PCM_SOUND_TRACKS_H_

#include "TYW_stdint.h"

/***     NOTICE: MUST be 12k sample rate !!!     ***/
/***        NOTICE: MUST be mono type !!!        ***/

typedef enum
{
hu's avatar
hu committed
13 14 15
    PCM_Track_Index_Crash = 0U,
    PCM_Track_Index_DoorOpen,
    PCM_Track_Index_Key,
hu's avatar
hu committed
16
    PCM_Track_Index_OverSpeed,
hu's avatar
hu committed
17 18 19 20
    PCM_Track_Index_OverSpeed_2S,
    PCM_Track_Index_Seatbelta,
    PCM_Track_Index_Warrning,
    PCM_Track_Index_TICK,
hu's avatar
hu committed
21
    PCM_Track_Index_TOCK,
hu's avatar
hu committed
22

hu's avatar
hu committed
23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38
    PCM_Track_Index_MAX,
} PCM_Track_Index_en_t;

typedef struct
{
    const uint8_t *pPCMData;
    uint32_t Size;
    int16_t Gain;
} PCM_Track_Attr_st_t;


extern const PCM_Track_Attr_st_t PCMTrackAttrTable[PCM_Track_Index_MAX];

#define PCM_TRACK_TOTAL_NUM PCM_Track_Index_MAX //(sizeof(PCMTrackAttrTable) / sizeof(PCM_Track_Attr_st_t))

#endif