mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-07-30 10:09:25 -04:00
Microphone tx is mostly working, Voice activation, PTT, CTCSS...
Transmit bandwidth bugfix TX LED is now only lit when using rf amp VU-meter widget Added gain parameter for baseband audio TX
This commit is contained in:
parent
71999f216f
commit
69b0ef9a40
32 changed files with 523 additions and 194 deletions
|
@ -35,27 +35,13 @@
|
|||
|
||||
class AudioInput {
|
||||
public:
|
||||
void configure(
|
||||
const iir_biquad_config_t& hpf_config,
|
||||
const float squelch_threshold = 0.0f
|
||||
);
|
||||
|
||||
void read_audio_buffer(buffer_s16_t& audio);
|
||||
|
||||
/*void set_stream(std::unique_ptr<StreamInput> new_stream) {
|
||||
stream = std::move(new_stream);
|
||||
}*/
|
||||
|
||||
private:
|
||||
static constexpr float k = 32768.0f;
|
||||
/*static constexpr float k = 32768.0f;
|
||||
static constexpr float ki = 1.0f / k;
|
||||
|
||||
IIRBiquadFilter hpf { };
|
||||
//FMSquelch squelch { };
|
||||
|
||||
//std::unique_ptr<StreamInput> stream { };
|
||||
|
||||
//AudioStatsCollector audio_stats { };
|
||||
IIRBiquadFilter hpf { };*/
|
||||
};
|
||||
|
||||
#endif/*__AUDIO_INPUT_H__*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue