leixing.h
上传用户:qzjinhui
上传日期:2020-10-10
资源大小:5260k
文件大小:2k
源码类别:

语音压缩

开发平台:

Visual C++

  1. #include "stdafx.h"
  2. typedef unsigned long U32, *P_U32, **PP_U32;
  3. typedef signed long S32, *P_S32, **PP_S32;
  4. typedef unsigned short U16, *P_U16, **PP_U16;
  5. typedef signed short S16, *P_S16, **PP_S16;
  6. typedef unsigned char U8, *P_U8, **PP_U8;
  7. typedef signed char S8, *P_S8, **PP_S8;
  8. typedef int BOOL;
  9. #define S64 __int64 // your 64-bit type goes here.
  10. typedef S32 SFIXED, *P_SFIXED; // a 16.16 fixed point number
  11. #ifdef DEBUG
  12. #define Dbg( x ) x
  13. #else
  14. #define Dbg( x ) /* */
  15. #endif 
  16. #define Abs(v) ((v)<0?(-(v)):(v))
  17. #define Max(a,b) ((a)>(b)?(a):(b))
  18. #define Min(a,b) ((a)<(b)?(a):(b))
  19. #define LowU16(dw) ((U16)(U32)(dw))
  20. #define HighU16(dw) ((U16)((U32)(dw)>>16))
  21. #define LowU8(w) ((U8)(w))
  22. #define HighU8(w) ((U8)((U16)(w)>>8))
  23. #define MakeU16(lb,hb) (((U16)(hb)<<8)|(U16)(lb))
  24. #define MakeU32(lw,hw) (((U32)(hw)<<16)|(U32)(lw))
  25. // Limits
  26. #define maxU8 ((U8)0xFF)
  27. #define minS8 ((S8)0x80)
  28. #define maxS8 ((S8)0x7F)
  29. #define maxU16 ((U16)0xFFFF)
  30. #define minS16 ((S16)0x8000)
  31. #define maxS16 ((S16)0x7FFF)
  32. #define maxU32 ((U32)0xFFFFFFFF)
  33. #define minS32 ((S32)0x80000000)
  34. #define maxS32 ((S32)0x7FFFFFFF)
  35. #define FLASHASSERT(f)     ((void)0)
  36. #define fixed_1  0x00010000L
  37. #define END 0
  38. #define SHOWFRAME 1
  39. #define DEFINESHAPE 2
  40. #define DEFINESHAPE2 22
  41. #define DEFINESHAPE3 32
  42. #define DEFINEMORPH 46
  43. #define SETBACKGROUNDCOLOR 9
  44. #define PLACEOBJECT 4
  45. #define PLACEOBJECT2 26
  46. #define REMOVEOBJECT 5
  47. #define REMOVEOBJECT2 28
  48. #define SHOWFRAME 1
  49. #define DEFINESPRITE 39
  50. #define DEFINESOUND 14
  51. #define STARTSOUND 15
  52. #define SOUNDSTREAMHEAD 18
  53. #define SOUNDSTREAMBLOCK 19
  54. #define SOUNDSTREAMHEAD2 45
  55. #define DOACTION 12
  56. #define DOINITACTION 59
  57. #define DEFINEFRAMELABEL 43
  58. #define DEFINEBITS 6
  59. #define JPEGTABLES 8
  60. #define DEFINEBITSJPEG2 21
  61. #define DEFINEBITSJPEG3 35
  62. #define DEFINEBITSLOSSLESS 20
  63. #define DEFINEBITSLOSSLESS2 36
  64. #define DEFINEFONT 10
  65. #define DEFINETEXT 11
  66. #define DEFINETEXT2 33
  67. #define DEFINETEXT 11
  68. #define DEFINETEXT2 33
  69. #define soundHasInPoint  0x01
  70. #define soundHasOutPoint  0x02
  71. #define soundHasLoops  0x04
  72. #define soundHasEnvelope  0x08
  73. #define BYTE  unsigned char
  74. #define WORD  unsigned short 
  75. #define DWORD  unsigned int