synthclone 0.3.0
Loading...
Searching...
No Matches
sampleinputstream.h
Go to the documentation of this file.
1/*
2 * libsynthclone - a plugin API for `synthclone`
3 * Copyright (C) 2011-2012 Devin Anderson
4 *
5 * This library is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU Lesser General Public License as published by the
7 * Free Software Foundation; either version 2.1 of the License, or (at your
8 * option) any later version.
9 *
10 * This library is distributed in the hope that it will be useful, but WITHOUT
11 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
12 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License
13 * for more details.
14 *
15 * You should have received a copy of the GNU Lesser General Public License
16 * along with this library; if not, write to the Free Software Foundation,
17 * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
18 */
19
20#ifndef __SYNTHCLONE_SAMPLEINPUTSTREAM_H__
21#define __SYNTHCLONE_SAMPLEINPUTSTREAM_H__
22
23#include <synthclone/sample.h>
25
26namespace synthclone {
27
33
35
36 Q_OBJECT
37
38 public:
39
49
50 explicit
51 SampleInputStream(const Sample &sample, QObject *parent=0);
52
56
58
75
77 read(float *buffer, SampleFrameCount frames);
78
79 };
80
81}
82
83#endif
SampleInputStream(const Sample &sample, QObject *parent=0)
Constructs a new sample input stream.
~SampleInputStream()
Destroys the stream.
SampleFrameCount read(float *buffer, SampleFrameCount frames)
Reads data from the stream.
SampleStream(QObject *parent=0)
Contains sample data.
Definition sample.h:37
Definition component.h:26
qint64 SampleFrameCount
Holds a count of sample frames, or an offset with sample frames.
Definition types.h:90