swift
Loading...
Searching...
No Matches
sampleprovider.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (C) 2019 swift Project Community / Contributors
2// SPDX-License-Identifier: GPL-3.0-or-later OR LicenseRef-swift-pilot-client-1
3
5
6#ifndef SWIFT_SOUND_SAMPLEPROVIDER_H
7#define SWIFT_SOUND_SAMPLEPROVIDER_H
8
9#include <QObject>
10#include <QVector>
11
12#include "config/buildconfig.h"
14
15namespace swift::sound::sample_provider
16{
19 {
21
22 public:
25
27 ~ISampleProvider() override = default;
28
30 virtual int readSamples(QVector<float> &samples, qint64 count) = 0;
31
33 virtual bool isFinished() const { return false; }
34
35 protected:
38 };
39
40} // namespace swift::sound::sample_provider
41
42#endif // SWIFT_SOUND_SAMPLEPROVIDER_H
static bool isLocalDeveloperDebugBuild()
Local build for developers.
ISampleProvider(QObject *parent=nullptr)
Ctor.
virtual int readSamples(QVector< float > &samples, qint64 count)=0
Read samples.
QObject(QObject *parent)
Q_OBJECTQ_OBJECT
QObject * parent() const const
#define SWIFT_SOUND_EXPORT
Export a class or function from the library.