Sayonara Player
AudioDataReceiver.h
1 /* RawSoundReceiver.h */
2 
3 /* Copyright (C) 2011-2020 Michael Lugmair (Lucio Carreras)
4  *
5  * This file is part of sayonara player
6  *
7  * This program is free software: you can redistribute it and/or modify
8  * it under the terms of the GNU General Public License as published by
9  * the Free Software Foundation, either version 3 of the License, or
10  * (at your option) any later version.
11 
12  * This program is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  * GNU General Public License for more details.
16 
17  * You should have received a copy of the GNU General Public License
18  * along with this program. If not, see <http://www.gnu.org/licenses/>.
19  */
20 
21 #ifndef AUDIO_DATA_RECEIVER_INTERFACES_H
22 #define AUDIO_DATA_RECEIVER_INTERFACES_H
23 
24 #include "Utils/typedefs.h"
25 
26 #include <vector>
27 
28 class QByteArray;
29 
30 namespace Engine
31 {
37  {
38  public:
39  virtual void setLevel(float left, float right) = 0;
40  virtual bool isActive() const = 0;
41  };
42 
48  {
49  public:
50  virtual void setSpectrum(const std::vector<float>& spectrum) = 0;
51  virtual bool isActive() const = 0;
52  };
53 
59  {
60  public:
61  virtual void writeAudioData(const QByteArray& data) = 0;
62  };
63 }
64 
65 #endif // AUDIO_DATA_RECEIVER_INTERFACES_H
Engine::RawAudioDataReceiver
The RawSoundReceiver interface.
Definition: AudioDataReceiver.h:59
Engine::SpectrumDataReceiver
The SpectrumReceiver class.
Definition: AudioDataReceiver.h:48
Engine::LevelDataReceiver
The LevelDataReceiver class.
Definition: AudioDataReceiver.h:37