mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-07-30 01:59:13 -04:00
Create AudioOutput singleton, from extracted BasebandProcessor code.
This commit is contained in:
parent
364217a2b5
commit
877a66ca78
11 changed files with 160 additions and 90 deletions
|
@ -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__*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue