/[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 53 by schoenebeck, Mon Apr 26 17:15:51 2004 UTC revision 505 by schoenebeck, Tue May 3 01:00:25 2005 UTC
# Line 2  Line 2 
2   *                                                                         *   *                                                                         *
3   *   LinuxSampler - modular, streaming capable sampler                     *   *   LinuxSampler - modular, streaming capable sampler                     *
4   *                                                                         *   *                                                                         *
5   *   Copyright (C) 2003 by Benno Senoner                                   *   *   Copyright (C) 2003, 2004 by Benno Senoner and Christian Schoenebeck   *
6     *   Copyright (C) 2005 Christian Schoenebeck                              *
7   *                                                                         *   *                                                                         *
8   *   This program is free software; you can redistribute it and/or modify  *   *   This program is free software; you can redistribute it and/or modify  *
9   *   it under the terms of the GNU General Public License as published by  *   *   it under the terms of the GNU General Public License as published by  *
# Line 29  Line 30 
30  # warning DiskThread.h included  # warning DiskThread.h included
31  #endif // DEBUG_HEADERS  #endif // DEBUG_HEADERS
32    
33    #include <gig.h>
34    
35  #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
36  #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
37  #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)
38  #define STREAM_BUFFER_SIZE              131072  ///< the diskstream ringbuffer size (256kB as sample_t is 16bit)  
39  #define MAX_INPUT_STREAMS               100     ///< number of streams that should be allocated  
40    //#define STREAM_BUFFER_SIZE            131072  ///< the diskstream ringbuffer size (256kB as sample_t is 16bit)
41    
42    #define STREAM_BUFFER_SIZE              262144
43    //#define MAX_INPUT_STREAMS             150     ///< number of streams that should be allocated
44    
45    #define MAX_INPUT_STREAMS               90     ///< number of streams that should be allocated
46    
47    
48  #include "../../common/Thread.h"  #include "../../common/Thread.h"
49  #include "../../common/RingBuffer.h"  #include "../../common/RingBuffer.h"
# Line 48  namespace LinuxSampler { namespace gig { Line 58  namespace LinuxSampler { namespace gig {
58          public:          public:
59              // Methods              // Methods
60              DiskThread(uint BufferWrapElements);              DiskThread(uint BufferWrapElements);
61             ~DiskThread();              virtual ~DiskThread();
62              void    Reset();              void    Reset();
63              String  GetBufferFillBytes();              String  GetBufferFillBytes();
64              String  GetBufferFillPercentage();              String  GetBufferFillPercentage();
# Line 62  namespace LinuxSampler { namespace gig { Line 72  namespace LinuxSampler { namespace gig {
72              int ActiveStreamCountMax;              int ActiveStreamCountMax;
73    
74          protected:          protected:
75                ::gig::buffer_t DecompressionBuffer; ///< Used for thread safe streaming.
76    
77              int Main(); ///< Implementation of virtual method from class Thread              int Main(); ///< Implementation of virtual method from class Thread
78    
79                friend class Stream;
80          private:          private:
81              // Private Types              // Private Types
82              struct create_command_t {              struct create_command_t {

Legend:
Removed from v.53  
changed lines
  Added in v.505

  ViewVC Help
Powered by ViewVC