swift
src
sound
sampleprovider
mixingsampleprovider.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 MIXINGSAMPLEPROVIDER_H
7
#define MIXINGSAMPLEPROVIDER_H
8
9
#include <QSharedPointer>
10
#include <QVector>
11
12
#include "
sound/sampleprovider/sampleprovider.h
"
13
#include "
sound/swiftsoundexport.h
"
14
15
namespace
swift::sound::sample_provider
16
{
18
class
SWIFT_SOUND_EXPORT
CMixingSampleProvider
:
public
ISampleProvider
19
{
20
public
:
22
CMixingSampleProvider
(QObject *parent =
nullptr
);
23
25
void
addMixerInput(
ISampleProvider
*provider);
26
28
virtual
int
readSamples(QVector<float> &samples, qint64 count)
override
;
29
30
private
:
31
QVector<ISampleProvider *> m_sources;
32
};
33
}
// namespace swift::sound::sample_provider
34
35
#endif
// MIXINGSAMPLEPROVIDER_H
swift::sound::sample_provider::CMixingSampleProvider
Mixer.
Definition:
mixingsampleprovider.h:19
swift::sound::sample_provider::ISampleProvider
Sample provider interface.
Definition:
sampleprovider.h:19
sampleprovider.h
swiftsoundexport.h
SWIFT_SOUND_EXPORT
#define SWIFT_SOUND_EXPORT
Export a class or function from the library.
Definition:
swiftsoundexport.h:20
Generated on Mon Mar 24 2025 16:42:23 for swift by
1.9.1