Qmmp
/usr/src/RPM/BUILD/qmmp-0.7-svn/src/qmmp/buffer.h
00001 // Copyright (c) 2000-2001 Brad Hughes <bhughes@trolltech.com>
00002 //
00003 // Use, modification and distribution is allowed without limitation,
00004 // warranty, or liability of any kind.
00005 //
00006 
00007 #ifndef   __buffer_h
00008 #define   __buffer_h
00009 
00010 #define QMMP_BLOCK_FRAMES 512
00011 
00015 class Buffer
00016 {
00017 public:
00022     Buffer(unsigned long sz)
00023     {
00024         data = new unsigned char[sz];
00025         nbytes = 0;
00026         rate = 0;
00027         size = sz;
00028     }
00032     ~Buffer()
00033     {
00034         delete[] data;
00035         data = 0;
00036         nbytes = 0;
00037         rate = 0;
00038         size = 0;
00039     }
00040 
00041     unsigned char *data;      
00042     unsigned long nbytes;     
00043     unsigned long rate;       
00044     unsigned long size;       
00045 };
00046 
00047 
00048 #endif // __buffer_h
00049 
 All Classes Functions Variables Enumerations Enumerator