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

Contents of /linuxsampler/trunk/src/engines/sfz/DiskThread.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2012 - (show annotations) (download) (as text)
Fri Oct 23 17:53:17 2009 UTC (14 years, 5 months ago) by iliev
File MIME type: text/x-c++hdr
File size: 2805 byte(s)
* Refactoring: moved the independent code from
  the Gigasampler format engine to base classes
* SFZ format engine: experimental code (not usable yet)
* SoundFont format engine: experimental code (not usable yet)
* Fixed crash which may occur when MIDI key + transpose is out of range

1 /***************************************************************************
2 * *
3 * LinuxSampler - modular, streaming capable sampler *
4 * *
5 * Copyright (C) 2003,2004 by Benno Senoner and Christian Schoenebeck *
6 * Copyright (C) 2005-2009 Christian Schoenebeck *
7 * Copyright (C) 2009 Grigor Iliev *
8 * *
9 * This program is free software; you can redistribute it and/or modify *
10 * it under the terms of the GNU General Public License as published by *
11 * the Free Software Foundation; either version 2 of the License, or *
12 * (at your option) any later version. *
13 * *
14 * This program is distributed in the hope that it will be useful, *
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
17 * GNU General Public License for more details. *
18 * *
19 * You should have received a copy of the GNU General Public License *
20 * along with this program; if not, write to the Free Software *
21 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, *
22 * MA 02111-1307 USA *
23 ***************************************************************************/
24
25 #ifndef __LS_SFZ_DISKTHREAD_H__
26 #define __LS_SFZ_DISKTHREAD_H__
27
28 #include "../InstrumentManagerBase.h"
29 #include "../common/DiskThreadBase.h"
30 #include "InstrumentResourceManager.h"
31
32 namespace LinuxSampler { namespace sfz {
33
34 class DiskThread: public LinuxSampler::DiskThreadBase< ::sfz::Region, InstrumentResourceManager> {
35 protected:
36 virtual LinuxSampler::Stream* CreateStream(long BufferSize, uint BufferWrapElements);
37
38 virtual void LaunchStream (
39 LinuxSampler::Stream* pStream,
40 Stream::Handle hStream,
41 Stream::reference_t* pExportReference,
42 ::sfz::Region* pRgn,
43 unsigned long SampleOffset,
44 bool DoLoop
45 );
46
47 public:
48 DiskThread(int MaxStreams, uint BufferWrapElements, InstrumentResourceManager* pInstruments);
49 virtual ~DiskThread();
50 };
51
52
53 }} // namespace LinuxSampler::sfz
54
55 #endif /* __LS_SFZ_STREAM_H__ */
56

  ViewVC Help
Powered by ViewVC