From 2d622fd9bcb8da9dd3f3206e296cd6a701fc9d12 Mon Sep 17 00:00:00 2001 From: vovanec Date: Sat, 23 Jun 2007 16:48:01 +0000 Subject: moved into qmmp dir git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@12 90c681e8-e032-0410-971d-27865f9a5e38 --- lib/buffer.h | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 lib/buffer.h (limited to 'lib/buffer.h') 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 +// +// 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 + -- cgit v1.2.3-13-gbd6f