1234567891011121314151617181920 |
- #ifndef _EVRC_TO_PCM_H_
- #define _EVRC_TO_PCM_H_
- #include "datatype.h"
- #define VOICE_DATA_INDEX 16
- #define CNT_EVRC_FRAME_INDEX 12
- #define VOICE_MAGIC_INDEX 13
- #define UDP_VOICE_PKT_FRAME_CNT 10
- #define HAS_FULL_RATE 0xCA
- #define FULL_FRAME_I 0x04
- #define HALF_FRAME_I 0x03
- #define FULL_FRAME_SIZE 0x16
- #define HALF_FRAME_SIZE 0x0A
- #define ALL_FULL_RATE 0x0C
- #define HAS_AMRNB_RATE 0xaa
- //#define ANDROID_HZ_AMR_RATE 0x0B //hangzhou de amr(mei you yi huo yun suan)
- void evrc2pcm(unsigned char *playload, unsigned short playlen);
- #endif
|