/[svn]/linuxsampler/trunk/src/engines/gig/DiskThread.h
ViewVC logotype

Diff of /linuxsampler/trunk/src/engines/gig/DiskThread.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 385 by schoenebeck, Thu Feb 17 02:53:45 2005 UTC revision 502 by letz, Fri Apr 29 14:20:22 2005 UTC
# Line 33  Line 33 
33  #define REFILL_STREAMS_PER_RUN          4       ///< number of streams that should be refilled with each disk thread cycle  #define REFILL_STREAMS_PER_RUN          4       ///< number of streams that should be refilled with each disk thread cycle
34  #define MIN_REFILL_SIZE                 1024    ///< if no buffer was filled up more than this bottom limit, the disk thread will go to sleep  #define MIN_REFILL_SIZE                 1024    ///< if no buffer was filled up more than this bottom limit, the disk thread will go to sleep
35  #define MAX_REFILL_SIZE                 65536   ///< maximum of samples a buffer should be refilled in one cycle (256kB, as 16 bit stereo)  #define MAX_REFILL_SIZE                 65536   ///< maximum of samples a buffer should be refilled in one cycle (256kB, as 16 bit stereo)
36  #define STREAM_BUFFER_SIZE              131072  ///< the diskstream ringbuffer size (256kB as sample_t is 16bit)  
37  #define MAX_INPUT_STREAMS               150     ///< number of streams that should be allocated  
38    //#define STREAM_BUFFER_SIZE            131072  ///< the diskstream ringbuffer size (256kB as sample_t is 16bit)
39    
40    #define STREAM_BUFFER_SIZE              262144
41    //#define MAX_INPUT_STREAMS             150     ///< number of streams that should be allocated
42    
43    #define MAX_INPUT_STREAMS               90     ///< number of streams that should be allocated
44    
45    
46  #include "../../common/Thread.h"  #include "../../common/Thread.h"
47  #include "../../common/RingBuffer.h"  #include "../../common/RingBuffer.h"
# Line 50  namespace LinuxSampler { namespace gig { Line 57  namespace LinuxSampler { namespace gig {
57          public:          public:
58              // Methods              // Methods
59              DiskThread(uint BufferWrapElements);              DiskThread(uint BufferWrapElements);
60             ~DiskThread();              virtual ~DiskThread();
61              void    Reset();              void    Reset();
62              String  GetBufferFillBytes();              String  GetBufferFillBytes();
63              String  GetBufferFillPercentage();              String  GetBufferFillPercentage();

Legend:
Removed from v.385  
changed lines
  Added in v.502

  ViewVC Help
Powered by ViewVC