Create AudioOutput singleton, from extracted BasebandProcessor code.

This commit is contained in:
Jared Boone 2016-01-10 20:25:24 -08:00
parent 364217a2b5
commit 877a66ca78
11 changed files with 160 additions and 90 deletions

View file

@ -23,14 +23,10 @@
#define __BASEBAND_PROCESSOR_H__
#include "dsp_types.hpp"
#include "complex.hpp"
#include "channel_stats_collector.hpp"
#include "audio_stats_collector.hpp"
#include <array>
#include <cstdint>
#include <complex>
#include "message.hpp"
class BasebandProcessor {
public:
@ -43,14 +39,8 @@ public:
protected:
void feed_channel_stats(const buffer_c16_t& channel);
void fill_audio_buffer(const buffer_s16_t& audio);
void mute_audio(const buffer_s16_t& audio);
private:
ChannelStatsCollector channel_stats;
AudioStatsCollector audio_stats;
void feed_audio_stats(const buffer_s16_t& audio);
};
#endif/*__BASEBAND_PROCESSOR_H__*/