Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

43 lines
696 B

  1. /*++
  2. Copyright (c) 1995-1996 Microsoft Corporation
  3. Module Name:
  4. devaudq.h
  5. Abstract:
  6. Simple circular queue of MediaPacket structures used to keep track of audio buffers
  7. while they're being recorded/played.
  8. --*/
  9. #ifndef _DEVAUDQ_H_
  10. #define _DEVAUDQ_H_
  11. #include <pshpack8.h> /* Assume 8 byte packing throughout */
  12. class DevMediaQueue
  13. {
  14. private:
  15. UINT m_uBegin;
  16. UINT m_uEnd;
  17. UINT m_uMaxNum;
  18. MediaPacket **m_paPackets;
  19. public:
  20. DevMediaQueue ( void );
  21. ~DevMediaQueue ( void );
  22. void SetSize ( UINT uMaxNum );
  23. void Put ( MediaPacket * p );
  24. MediaPacket * Get ( void );
  25. MediaPacket * Peek ( void );
  26. };
  27. #include <poppack.h> /* End byte packing */
  28. #endif // _DEVAUDQ_H_