/[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 1320 by persson, Sat Feb 3 15:33:00 2007 UTC revision 1321 by schoenebeck, Tue Sep 4 01:12:49 2007 UTC
# Line 3  Line 3 
3   *   LinuxSampler - modular, streaming capable sampler                     *   *   LinuxSampler - modular, streaming capable sampler                     *
4   *                                                                         *   *                                                                         *
5   *   Copyright (C) 2003, 2004 by Benno Senoner and Christian Schoenebeck   *   *   Copyright (C) 2003, 2004 by Benno Senoner and Christian Schoenebeck   *
6   *   Copyright (C) 2005, 2006 Christian Schoenebeck                        *   *   Copyright (C) 2005 - 2007 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 55  namespace LinuxSampler { namespace gig { Line 55  namespace LinuxSampler { namespace gig {
55              String  GetBufferFillBytes();              String  GetBufferFillBytes();
56              String  GetBufferFillPercentage();              String  GetBufferFillPercentage();
57              int     OrderNewStream(Stream::reference_t* pStreamRef, ::gig::DimensionRegion* pDimRgn, unsigned long SampleOffset, bool DoLoop);              int     OrderNewStream(Stream::reference_t* pStreamRef, ::gig::DimensionRegion* pDimRgn, unsigned long SampleOffset, bool DoLoop);
58              int     OrderDeletionOfStream(Stream::reference_t* pStreamRef);              int     OrderDeletionOfStream(Stream::reference_t* pStreamRef, bool bRequestNotification = false);
59              int     OrderDeletionOfDimreg(::gig::DimensionRegion* dimreg);              int     OrderDeletionOfDimreg(::gig::DimensionRegion* dimreg);
60              Stream* AskForCreatedStream(Stream::OrderID_t StreamOrderID);              Stream* AskForCreatedStream(Stream::OrderID_t StreamOrderID);
61                Stream::Handle AskForDeletedStream();
62    
63              // the number of streams currently in usage              // the number of streams currently in usage
64              // printed on the console the main thread (along with the active voice count)              // printed on the console the main thread (along with the active voice count)
# Line 84  namespace LinuxSampler { namespace gig { Line 85  namespace LinuxSampler { namespace gig {
85                  Stream*           pStream;                  Stream*           pStream;
86                  Stream::Handle    hStream;                  Stream::Handle    hStream;
87                  Stream::OrderID_t OrderID;                  Stream::OrderID_t OrderID;
88                    bool              bNotify;
89              };              };
90    
91              // Attributes              // Attributes
# Line 91  namespace LinuxSampler { namespace gig { Line 93  namespace LinuxSampler { namespace gig {
93              uint                           Streams;              uint                           Streams;
94              RingBuffer<create_command_t,false>* CreationQueue;                      ///< Contains commands to create streams              RingBuffer<create_command_t,false>* CreationQueue;                      ///< Contains commands to create streams
95              RingBuffer<delete_command_t,false>* DeletionQueue;                      ///< Contains commands to delete streams              RingBuffer<delete_command_t,false>* DeletionQueue;                      ///< Contains commands to delete streams
96              RingBuffer<Stream::Handle,false>*   GhostQueue;                         ///< Contains handles to streams that are not used anymore and weren't deletable immediately              RingBuffer<delete_command_t,false>* GhostQueue;                         ///< Contains handles to streams that are not used anymore and weren't deletable immediately
97                RingBuffer<Stream::Handle,false>    DeletionNotificationQueue;          ///< In case the original sender requested a notification for its stream deletion order, this queue will receive the handle of the respective stream once actually be deleted by the disk thread.
98              RingBuffer< ::gig::DimensionRegion*,false>* DeleteDimregQueue;          ///< Contains dimension regions that are not used anymore and should be handed back to the instrument resource manager              RingBuffer< ::gig::DimensionRegion*,false>* DeleteDimregQueue;          ///< Contains dimension regions that are not used anymore and should be handed back to the instrument resource manager
99              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
100              Stream*                        pStreams[CONFIG_MAX_STREAMS];            ///< Contains all disk streams (whether used or unused)              Stream*                        pStreams[CONFIG_MAX_STREAMS];            ///< Contains all disk streams (whether used or unused)

Legend:
Removed from v.1320  
changed lines
  Added in v.1321

  ViewVC Help
Powered by ViewVC