/usr/include/qmmp/buffer.h is in libqmmp-dev 0.7.4-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 | // 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
#define QMMP_BLOCK_FRAMES 512
/*! @brief Audio buffer class.
* @author Brad Hughes <bhughes@trolltech.com>
*/
class Buffer
{
public:
/*!
* Constructs an empty buffer object.
* @param sz Size in bytes;
*/
Buffer(unsigned long sz)
{
data = new unsigned char[sz];
nbytes = 0;
rate = 0;
size = sz;
}
/*!
* Destructor.
*/
~Buffer()
{
delete[] data;
data = 0;
nbytes = 0;
rate = 0;
size = 0;
}
unsigned char *data; /*!< Audio data */
unsigned long nbytes; /*!< Audio data size */
unsigned long rate; /*!< Buffer bitrate */
unsigned long size; /*!< Buffer size */
};
#endif // __buffer_h
|