mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-07-30 18:19:08 -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
|
@ -32,28 +32,9 @@
|
|||
#include <cstddef>
|
||||
#include <array>
|
||||
|
||||
void AudioInput::configure(
|
||||
const iir_biquad_config_t& hpf_config,
|
||||
const float squelch_threshold
|
||||
) {
|
||||
//hpf.configure(hpf_config);
|
||||
//squelch.set_threshold(squelch_threshold);
|
||||
}
|
||||
|
||||
void AudioInput::read_audio_buffer(buffer_s16_t& audio) {
|
||||
//std::array<int16_t, 32> audio_int;
|
||||
|
||||
auto audio_buffer = audio::dma::rx_empty_buffer();
|
||||
|
||||
for(size_t i=0; i<audio_buffer.count; i++) {
|
||||
//const int32_t sample_int = audio.p[i] * k;
|
||||
//const int32_t sample_saturated = __SSAT(sample_int, 16);
|
||||
for (size_t i=0; i<audio_buffer.count; i++)
|
||||
audio.p[i] = audio_buffer.p[i].left;
|
||||
//audio_int[i] = sample_saturated;
|
||||
}
|
||||
/*if( stream && send_to_fifo ) {
|
||||
stream->write(audio_int.data(), audio_buffer.count * sizeof(audio_int[0]));
|
||||
}*/
|
||||
|
||||
//feed_audio_stats(audio);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue