~siretart/ubuntu/utopic/blender/libav10

« back to all changes in this revision

Viewing changes to intern/audaspace/FX/AUD_LoopReader.h

  • Committer: Package Import Robot
  • Author(s): Matteo F. Vescovi
  • Date: 2012-07-23 08:54:18 UTC
  • mfrom: (14.2.16 sid)
  • mto: (14.2.19 sid)
  • mto: This revision was merged to the branch mainline in revision 42.
  • Revision ID: package-import@ubuntu.com-20120723085418-9foz30v6afaf5ffs
Tags: 2.63a-2
* debian/: Cycles support added (Closes: #658075)
  For now, this top feature has been enabled only
  on [any-amd64 any-i386] architectures because
  of OpenImageIO failing on all others
* debian/: scripts installation path changed
  from /usr/lib to /usr/share:
  + debian/patches/: patchset re-worked for path changing
  + debian/control: "Breaks" field added on yafaray-exporter

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
 
 * $Id: AUD_LoopReader.h 26693 2010-02-07 23:41:17Z nexyon $
3
 
 *
4
 
 * ***** BEGIN LGPL LICENSE BLOCK *****
5
 
 *
6
 
 * Copyright 2009 Jörg Hermann Müller
 
2
 * ***** BEGIN GPL LICENSE BLOCK *****
 
3
 *
 
4
 * Copyright 2009-2011 Jörg Hermann Müller
7
5
 *
8
6
 * This file is part of AudaSpace.
9
7
 *
10
 
 * AudaSpace is free software: you can redistribute it and/or modify
11
 
 * it under the terms of the GNU Lesser General Public License as published by
12
 
 * the Free Software Foundation, either version 3 of the License, or
 
8
 * Audaspace is free software; you can redistribute it and/or modify
 
9
 * it under the terms of the GNU General Public License as published by
 
10
 * the Free Software Foundation; either version 2 of the License, or
13
11
 * (at your option) any later version.
14
12
 *
15
13
 * AudaSpace is distributed in the hope that it will be useful,
16
14
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17
15
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18
 
 * GNU Lesser General Public License for more details.
19
 
 *
20
 
 * You should have received a copy of the GNU Lesser General Public License
21
 
 * along with AudaSpace.  If not, see <http://www.gnu.org/licenses/>.
22
 
 *
23
 
 * ***** END LGPL LICENSE BLOCK *****
24
 
 */
25
 
 
26
 
#ifndef AUD_LOOPREADER
27
 
#define AUD_LOOPREADER
 
16
 * GNU General Public License for more details.
 
17
 *
 
18
 * You should have received a copy of the GNU General Public License
 
19
 * along with Audaspace; if not, write to the Free Software Foundation,
 
20
 * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
 
21
 *
 
22
 * ***** END GPL LICENSE BLOCK *****
 
23
 */
 
24
 
 
25
/** \file audaspace/FX/AUD_LoopReader.h
 
26
 *  \ingroup audfx
 
27
 */
 
28
 
 
29
 
 
30
#ifndef __AUD_LOOPREADER_H__
 
31
#define __AUD_LOOPREADER_H__
28
32
 
29
33
#include "AUD_EffectReader.h"
30
 
class AUD_Buffer;
 
34
#include "AUD_Buffer.h"
31
35
 
32
36
/**
33
37
 * This class reads another reader and loops it.
37
41
{
38
42
private:
39
43
        /**
40
 
         * The playback buffer.
 
44
         * The loop count.
41
45
         */
42
 
        AUD_Buffer *m_buffer;
 
46
        const int m_count;
43
47
 
44
48
        /**
45
49
         * The left loop count.
46
50
         */
47
 
        int m_loop;
 
51
        int m_left;
48
52
 
49
 
        /**
50
 
         * The left samples.
51
 
         */
52
 
        int m_samples;
 
53
        // hide copy constructor and operator=
 
54
        AUD_LoopReader(const AUD_LoopReader&);
 
55
        AUD_LoopReader& operator=(const AUD_LoopReader&);
53
56
 
54
57
public:
55
58
        /**
57
60
         * \param reader The reader to read from.
58
61
         * \param loop The desired loop count, negative values result in endless
59
62
         *        looping.
60
 
         * \exception AUD_Exception Thrown if the reader specified is NULL.
61
 
         */
62
 
        AUD_LoopReader(AUD_IReader* reader, int loop);
63
 
 
64
 
        /**
65
 
         * Destroys the reader.
66
 
         */
67
 
        virtual ~AUD_LoopReader();
68
 
 
69
 
        virtual AUD_ReaderType getType();
70
 
        virtual bool notify(AUD_Message &message);
71
 
        virtual void read(int & length, sample_t* & buffer);
 
63
         */
 
64
        AUD_LoopReader(AUD_Reference<AUD_IReader> reader, int loop);
 
65
 
 
66
        virtual void seek(int position);
 
67
        virtual int getLength() const;
 
68
        virtual int getPosition() const;
 
69
        virtual void read(int& length, bool& eos, sample_t* buffer);
72
70
};
73
71
 
74
 
#endif //AUD_LOOPREADER
 
72
#endif //__AUD_LOOPREADER_H__