diff options
| author | vovanec <vovanec@90c681e8-e032-0410-971d-27865f9a5e38> | 2007-06-23 16:48:01 +0000 |
|---|---|---|
| committer | vovanec <vovanec@90c681e8-e032-0410-971d-27865f9a5e38> | 2007-06-23 16:48:01 +0000 |
| commit | 2d622fd9bcb8da9dd3f3206e296cd6a701fc9d12 (patch) | |
| tree | f92135e6cb831e46336dfd4ade47e03ef3a19ac5 /lib/buffer.h | |
| parent | 4b6a6720805c585c89f44fd276b3ace8670514d9 (diff) | |
| download | qmmp-2d622fd9bcb8da9dd3f3206e296cd6a701fc9d12.tar.gz qmmp-2d622fd9bcb8da9dd3f3206e296cd6a701fc9d12.tar.bz2 qmmp-2d622fd9bcb8da9dd3f3206e296cd6a701fc9d12.zip | |
moved into qmmp dir
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@12 90c681e8-e032-0410-971d-27865f9a5e38
Diffstat (limited to 'lib/buffer.h')
| -rw-r--r-- | lib/buffer.h | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/lib/buffer.h b/lib/buffer.h new file mode 100644 index 000000000..b04ea0ed8 --- /dev/null +++ b/lib/buffer.h @@ -0,0 +1,37 @@ +// Copyright (c) 2000-2001 Brad Hughes <bhughes@trolltech.com> +// +// Use, modification and distribution is allowed without limitation, +// warranty, or liability of any kind. +// + +#ifndef __buffer_h +#define __buffer_h + +#include "constants.h" + +class Buffer { +public: + Buffer() + { + data = new unsigned char[Buffer::size()]; + nbytes = 0; + rate = 0; + } + ~Buffer() + { + delete data; + data = 0; + nbytes = 0; + rate = 0; + } + + unsigned char *data; + unsigned long nbytes; + unsigned long rate; + + static unsigned long size() { return globalBlockSize; } +}; + + +#endif // __buffer_h + |
