aboutsummaryrefslogtreecommitdiff
path: root/src/qmmp/buffer.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/qmmp/buffer.h')
-rw-r--r--src/qmmp/buffer.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/qmmp/buffer.h b/src/qmmp/buffer.h
index 910615f1f..161af5692 100644
--- a/src/qmmp/buffer.h
+++ b/src/qmmp/buffer.h
@@ -7,8 +7,7 @@
#ifndef __buffer_h
#define __buffer_h
-#define QMMP_BLOCK_SIZE (2048*6) //512*4*6
-#define QMMP_BUFFER_SIZE (QMMP_BLOCK_SIZE*32)
+#define QMMP_BLOCK_FRAMES 512
/*! @brief Audio buffer class.
* @author Brad Hughes <bhughes@trolltech.com>
@@ -18,13 +17,14 @@ class Buffer
public:
/*!
* Constructs an empty buffer object.
+ * @param sz Size in bytes;
*/
- Buffer()
+ Buffer(unsigned long sz)
{
- data = new unsigned char[QMMP_BLOCK_SIZE];
+ data = new unsigned char[sz];
nbytes = 0;
rate = 0;
- size = QMMP_BLOCK_SIZE;
+ size = sz;
}
/*!
* Destructor.