swift
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 
13 #include "sound/swiftsoundexport.h"
14 
15 namespace swift::sound::sample_provider
16 {
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
#define SWIFT_SOUND_EXPORT
Export a class or function from the library.