source: sbliveos2/trunk/drv16/strmbuff.hpp@ 166

Last change on this file since 166 was 166, checked in by sandervl, 24 years ago

update for new direct audio interface

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 1.8 KB
Line 
1/* $Id: strmbuff.hpp 166 2001-03-22 18:13:01Z sandervl $ */
2
3/* SCCSID = %W% %E% */
4/****************************************************************************
5 * *
6 * Copyright (c) IBM Corporation 1994 - 1997. *
7 * *
8 * The following IBM OS/2 source code is provided to you solely for the *
9 * the purpose of assisting you in your development of OS/2 device drivers. *
10 * You may use this code in accordance with the IBM License Agreement *
11 * provided in the IBM Device Driver Source Kit for OS/2. *
12 * *
13 ****************************************************************************/
14/**@internal %W%
15 * Defines, class definations and prototypes for
16 * @version %I%
17 * @context Unless otherwise noted, all interfaces are Ring-0, 16-bit,
18 * <stack context>.
19 * @history
20 *
21 */
22#ifndef STREAMBUFFER_INCLUDED
23#define STREAMBUFFER_INCLUDED
24
25#include "queue.hpp"
26
27typedef BYTE __far *PSTREAMBUF;
28
29class STREAMBUFFER : public QUEUEELEMENT{
30
31public:
32 PSTREAMBUF pBuffptr; // pointer to the stream buffer
33 ULONG ulBuffsz; // size of stream buffer
34 ULONG ulBuffpos; // Current buffer position
35 ULONG ulDonepos; // position at which the buffer can be returned
36 STREAMBUFFER(ULONG bufsize, PSTREAMBUF bufptr):
37 pBuffptr(bufptr),
38 ulBuffsz(bufsize),
39 ulBuffpos(0),
40 ulDonepos(0)
41 {};
42
43};
44typedef STREAMBUFFER *PSTREAMBUFFER;
45
46
47class STREAMBUFFEREX : public STREAMBUFFER
48{
49public:
50 STREAMBUFFEREX(ULONG bufsize, PSTREAMBUF bufptr, ULONG lockHandle):
51 STREAMBUFFER(bufsize, bufptr), hLock(lockHandle), fDone(FALSE)
52 {};
53
54 ULONG hLock;
55 BOOL fDone;
56
57};
58typedef STREAMBUFFEREX *PSTREAMBUFFEREX;
59
60#endif
Note: See TracBrowser for help on using the repository browser.