mirror of
https://github.com/sle118/squeezelite-esp32.git
synced 2025-12-10 21:47:04 +03:00
29 lines
667 B
C++
29 lines
667 B
C++
#pragma once
|
|
|
|
#include <memory> // for shared_ptr, unique_ptr
|
|
#include <mutex> // for mutex
|
|
#include <vector> // for vector
|
|
|
|
#include "StreamInfo.h" // for StreamInfo
|
|
|
|
namespace bell {
|
|
class AudioTransform;
|
|
class Gain;
|
|
|
|
class AudioPipeline {
|
|
private:
|
|
std::shared_ptr<Gain> headroomGainTransform;
|
|
|
|
public:
|
|
AudioPipeline();
|
|
~AudioPipeline(){};
|
|
|
|
std::mutex accessMutex;
|
|
std::vector<std::shared_ptr<AudioTransform>> transforms;
|
|
|
|
void recalculateHeadroom();
|
|
void addTransform(std::shared_ptr<AudioTransform> transform);
|
|
void volumeUpdated(int volume);
|
|
std::unique_ptr<StreamInfo> process(std::unique_ptr<StreamInfo> data);
|
|
};
|
|
}; // namespace bell
|