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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 3455 - (show annotations) (download) (as text)
Sun Jan 27 10:07:54 2019 UTC (5 years, 2 months ago) by persson
File MIME type: text/x-c++hdr
File size: 2941 byte(s)
* Fixed some compiler warnings
* Fixed compilation error when cross-compiling to Mac

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-2019 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_SF2_DISKTHREAD_H__
26 #define __LS_SF2_DISKTHREAD_H__
27
28 #include "../InstrumentManagerBase.h"
29 #include "../common/DiskThreadBase.h"
30 #include "InstrumentResourceManager.h"
31
32 namespace LinuxSampler {
33 template <>
34 LinuxSampler::Stream* LinuxSampler::DiskThreadBase< ::sf2::Region, sf2::InstrumentResourceManager>::SLOT_RESERVED;
35
36 namespace sf2 {
37
38 class DiskThread: public LinuxSampler::DiskThreadBase< ::sf2::Region, InstrumentResourceManager> {
39 protected:
40 virtual LinuxSampler::Stream* CreateStream(long BufferSize, uint BufferWrapElements);
41
42 virtual void LaunchStream (
43 LinuxSampler::Stream* pStream,
44 Stream::Handle hStream,
45 Stream::reference_t* pExportReference,
46 ::sf2::Region* pRgn,
47 unsigned long SampleOffset,
48 bool DoLoop
49 );
50
51 public:
52 DiskThread(int MaxStreams, uint BufferWrapElements, InstrumentResourceManager* pInstruments);
53 virtual ~DiskThread();
54 };
55
56
57 }} // namespace LinuxSampler::sf2
58
59 #endif /* __LS_SF2_STREAM_H__ */
60

  ViewVC Help
Powered by ViewVC