/[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 385 by schoenebeck, Thu Feb 17 02:53:45 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 33  Line 34 
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)  #define STREAM_BUFFER_SIZE              131072  ///< the diskstream ringbuffer size (256kB as sample_t is 16bit)
37  #define MAX_INPUT_STREAMS               100     ///< number of streams that should be allocated  #define MAX_INPUT_STREAMS               150     ///< number of streams that should be allocated
38    
39  #include "../../common/Thread.h"  #include "../../common/Thread.h"
40  #include "../../common/RingBuffer.h"  #include "../../common/RingBuffer.h"
41    #include "../../lib/fileloader/libgig/gig.h"
42  #include "Stream.h"  #include "Stream.h"
43  #include "Voice.h"  #include "Voice.h"
44    
# Line 62  namespace LinuxSampler { namespace gig { Line 64  namespace LinuxSampler { namespace gig {
64              int ActiveStreamCountMax;              int ActiveStreamCountMax;
65    
66          protected:          protected:
67                ::gig::buffer_t DecompressionBuffer; ///< Used for thread safe streaming.
68    
69              int Main(); ///< Implementation of virtual method from class Thread              int Main(); ///< Implementation of virtual method from class Thread
70    
71                friend class Stream;
72          private:          private:
73              // Private Types              // Private Types
74              struct create_command_t {              struct create_command_t {

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

  ViewVC Help
Powered by ViewVC