1
0

AACFrame.h 663 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. #ifndef NULLSOFT_AACFRAME_H
  2. #define NULLSOFT_AACFRAME_H
  3. class AACFrame
  4. {
  5. public:
  6. void ReadBuffer(unsigned __int8 *buffer);
  7. bool OK();
  8. enum
  9. {
  10. NOT_PROTECTED=1,
  11. PROTECTED=0,
  12. SYNC = 0xFFF,
  13. MAIN = 0x00,
  14. LC = 0x01,
  15. SSR = 0x10,
  16. LTP = 0x11,
  17. };
  18. int GetNumChannels();
  19. int GetSampleRate();
  20. const wchar_t *GetProfileName();
  21. const wchar_t *GetChannelConfigurationName();
  22. int GetMPEGVersion(); // returns 2 or 4
  23. public:
  24. int syncword;
  25. int layer;
  26. int id;
  27. int protection;
  28. int profile;
  29. int sampleRateIndex;
  30. int privateBit;
  31. int channelConfiguration;
  32. int original;
  33. int home;
  34. int frameLength;
  35. int bufferFullness;
  36. int numDataBlocks;
  37. };
  38. #endif