/[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 538 by schoenebeck, Wed May 11 20:02:17 2005 UTC revision 554 by schoenebeck, Thu May 19 19:25:14 2005 UTC
# Line 26  Line 26 
26    
27  #include "../../common/global.h"  #include "../../common/global.h"
28    
 #if DEBUG_HEADERS  
 # warning DiskThread.h included  
 #endif // DEBUG_HEADERS  
   
29  #include <gig.h>  #include <gig.h>
30    
 #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              262144  ///< the diskstream ringbuffer size (512kB as sample_t is 16bit)  
 #define MAX_INPUT_STREAMS               90      ///< number of streams that should be allocated  
   
31  #include "../../common/Thread.h"  #include "../../common/Thread.h"
32  #include "../../common/RingBuffer.h"  #include "../../common/RingBuffer.h"
33  #include "Stream.h"  #include "Stream.h"
# Line 93  namespace LinuxSampler { namespace gig { Line 83  namespace LinuxSampler { namespace gig {
83              RingBuffer<delete_command_t>*  DeletionQueue;                          ///< Contains commands to delete streams              RingBuffer<delete_command_t>*  DeletionQueue;                          ///< Contains commands to delete streams
84              RingBuffer<Stream::Handle>*    GhostQueue;                             ///< Contains handles to streams that are not used anymore and weren't deletable immediately              RingBuffer<Stream::Handle>*    GhostQueue;                             ///< Contains handles to streams that are not used anymore and weren't deletable immediately
85              unsigned int                   RefillStreamsPerRun;                    ///< How many streams should be refilled in each loop run              unsigned int                   RefillStreamsPerRun;                    ///< How many streams should be refilled in each loop run
86              Stream*                        pStreams[MAX_INPUT_STREAMS];            ///< Contains all disk streams (wether used or unused)              Stream*                        pStreams[CONFIG_MAX_STREAMS];            ///< Contains all disk streams (wether used or unused)
87              Stream*                        pCreatedStreams[MAX_INPUT_STREAMS + 1]; ///< This is where the voice (audio thread) picks up it's meanwhile hopefully created disk stream.              Stream*                        pCreatedStreams[CONFIG_MAX_STREAMS + 1]; ///< This is where the voice (audio thread) picks up it's meanwhile hopefully created disk stream.
88              static Stream*                 SLOT_RESERVED;                          ///< This value is used to mark an entry in pCreatedStreams[] as reserved.              static Stream*                 SLOT_RESERVED;                          ///< This value is used to mark an entry in pCreatedStreams[] as reserved.
89    
90              // Methods              // Methods

Legend:
Removed from v.538  
changed lines
  Added in v.554

  ViewVC Help
Powered by ViewVC