evrc2Pcm.h 658 B

1234567891011121314151617181920
  1. #ifndef _EVRC_TO_PCM_H_
  2. #define _EVRC_TO_PCM_H_
  3. #include "datatype.h"
  4. #define VOICE_DATA_INDEX 16
  5. #define CNT_EVRC_FRAME_INDEX 12
  6. #define VOICE_MAGIC_INDEX 13
  7. #define UDP_VOICE_PKT_FRAME_CNT 10
  8. #define HAS_FULL_RATE 0xCA
  9. #define FULL_FRAME_I 0x04
  10. #define HALF_FRAME_I 0x03
  11. #define FULL_FRAME_SIZE 0x16
  12. #define HALF_FRAME_SIZE 0x0A
  13. #define ALL_FULL_RATE 0x0C
  14. #define HAS_AMRNB_RATE 0xaa
  15. //#define ANDROID_HZ_AMR_RATE 0x0B //hangzhou de amr(mei you yi huo yun suan)
  16. void evrc2pcm(unsigned char *playload, unsigned short playlen);
  17. #endif