--- linuxsampler/trunk/src/engines/gig/DiskThread.h 2005/02/17 02:53:45 385 +++ linuxsampler/trunk/src/engines/gig/DiskThread.h 2005/04/29 14:20:22 502 @@ -33,8 +33,15 @@ #define REFILL_STREAMS_PER_RUN 4 ///< number of streams that should be refilled with each disk thread cycle #define MIN_REFILL_SIZE 1024 ///< if no buffer was filled up more than this bottom limit, the disk thread will go to sleep #define MAX_REFILL_SIZE 65536 ///< maximum of samples a buffer should be refilled in one cycle (256kB, as 16 bit stereo) -#define STREAM_BUFFER_SIZE 131072 ///< the diskstream ringbuffer size (256kB as sample_t is 16bit) -#define MAX_INPUT_STREAMS 150 ///< number of streams that should be allocated + + +//#define STREAM_BUFFER_SIZE 131072 ///< the diskstream ringbuffer size (256kB as sample_t is 16bit) + +#define STREAM_BUFFER_SIZE 262144 +//#define MAX_INPUT_STREAMS 150 ///< number of streams that should be allocated + +#define MAX_INPUT_STREAMS 90 ///< number of streams that should be allocated + #include "../../common/Thread.h" #include "../../common/RingBuffer.h" @@ -50,7 +57,7 @@ public: // Methods DiskThread(uint BufferWrapElements); - ~DiskThread(); + virtual ~DiskThread(); void Reset(); String GetBufferFillBytes(); String GetBufferFillPercentage();