Leaked source code of windows server 2003
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
739 B

/*++
Copyright (c) 1995-1996 Microsoft Corporation
Module Name:
devaudq.h
Abstract:
Simple circular queue of MediaPacket structures used to keep track of audio buffers
while they're being recorded/played.
--*/
#ifndef _DEVAUDQ_H_
#define _DEVAUDQ_H_
#include <pshpack8.h> /* Assume 8 byte packing throughout */
class DevMediaQueue
{
private:
UINT m_uBegin;
UINT m_uEnd;
UINT m_uMaxNum;
MediaPacket **m_paPackets;
public:
DevMediaQueue ( void );
~DevMediaQueue ( void );
void SetSize ( UINT uMaxNum );
void Put ( MediaPacket * p );
MediaPacket * Get ( void );
MediaPacket * Peek ( void );
};
#include <poppack.h> /* End byte packing */
#endif // _DEVAUDQ_H_