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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2012 - (hide annotations) (download) (as text)
Fri Oct 23 17:53:17 2009 UTC (14 years, 6 months ago) by iliev
File MIME type: text/x-c++hdr
File size: 2633 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 schoenebeck 53 /***************************************************************************
2     * *
3     * LinuxSampler - modular, streaming capable sampler *
4     * *
5 iliev 2012 * Copyright (C) 2003,2004 by Benno Senoner and Christian Schoenebeck *
6     * Copyright (C) 2005-2009 Christian Schoenebeck *
7     * Copyright (C) 2009 Grigor Iliev *
8 schoenebeck 53 * *
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 iliev 2012 #define __LS_GIG_STREAM_H__
27 schoenebeck 53
28 iliev 2012 #include "../common/StreamBase.h"
29 schoenebeck 505 #include <gig.h>
30    
31 schoenebeck 53 namespace LinuxSampler { namespace gig {
32    
33 iliev 2012 class Stream: public LinuxSampler::StreamBase< ::gig::DimensionRegion> {
34     private:
35     ::gig::buffer_t* pDecompressionBuffer;
36    
37 schoenebeck 53 public:
38 schoenebeck 385 Stream( ::gig::buffer_t* pDecompressionBuffer, uint BufferSize, uint BufferWrapElements);
39 iliev 2012 virtual long Read(uint8_t* pBuf, long SamplesToRead);
40 schoenebeck 53
41 iliev 2012 void Launch (
42     Stream::Handle hStream,
43     reference_t* pExportReference,
44     ::gig::DimensionRegion* pRgn,
45     unsigned long SampleOffset,
46     bool DoLoop
47     );
48     };
49 schoenebeck 53
50    
51 iliev 2012 }} // namespace LinuxSampler::gig
52 schoenebeck 53
53 iliev 2012 #endif /* __LS_GIG_STREAM_H__ */
54 schoenebeck 53

  ViewVC Help
Powered by ViewVC