/[svn]/linuxsampler/trunk/src/engines/gig/Stream.h
ViewVC logotype

Contents of /linuxsampler/trunk/src/engines/gig/Stream.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 3052 - (show annotations) (download) (as text)
Wed Dec 14 17:34:54 2016 UTC (7 years, 4 months ago) by schoenebeck
File MIME type: text/x-c++hdr
File size: 2702 byte(s)
- Preparations for Xcode project update.

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_GIG_STREAM_H__
26 #define __LS_GIG_STREAM_H__
27
28 #include "../common/StreamBase.h"
29
30 #if AC_APPLE_UNIVERSAL_BUILD
31 # include <libgig/gig.h>
32 #else
33 # include <gig.h>
34 #endif
35
36 namespace LinuxSampler { namespace gig {
37
38 class Stream: public LinuxSampler::StreamBase< ::gig::DimensionRegion> {
39 private:
40 ::gig::buffer_t* pDecompressionBuffer;
41
42 public:
43 Stream( ::gig::buffer_t* pDecompressionBuffer, uint BufferSize, uint BufferWrapElements);
44 virtual long Read(uint8_t* pBuf, long SamplesToRead);
45
46 void Launch (
47 Stream::Handle hStream,
48 reference_t* pExportReference,
49 ::gig::DimensionRegion* pRgn,
50 unsigned long SampleOffset,
51 bool DoLoop
52 );
53 };
54
55
56 }} // namespace LinuxSampler::gig
57
58 #endif /* __LS_GIG_STREAM_H__ */
59

  ViewVC Help
Powered by ViewVC