mirror of
https://github.com/meshtastic/firmware.git
synced 2025-12-20 17:52:35 +00:00
Audio Module is finished for regression tests.
This commit is contained in:
@@ -7,11 +7,9 @@
|
||||
#include "NodeDB.h"
|
||||
#include <Arduino.h>
|
||||
#include <driver/i2s.h>
|
||||
// #include <driver/adc.h>
|
||||
#include <functional>
|
||||
#include <codec2.h>
|
||||
#include <ButterworthFilter.h>
|
||||
#include <FastAudioFIFO.h>
|
||||
|
||||
#define ADC_BUFFER_SIZE_MAX 320
|
||||
|
||||
@@ -32,11 +30,9 @@ class AudioModule : public SinglePortModule, private concurrency::OSThread
|
||||
int encode_codec_size = 0;
|
||||
int encode_frame_size = 0;
|
||||
volatile RadioState radio_state = RadioState::rx;
|
||||
FastAudioFIFO fifo;
|
||||
|
||||
struct CODEC2* codec2 = NULL;
|
||||
int16_t sample;
|
||||
adc1_channel_t mic_chan = (adc1_channel_t)0;
|
||||
uint8_t rx_raw_audio_value = 127;
|
||||
// int16_t sample;
|
||||
|
||||
AudioModule();
|
||||
|
||||
@@ -49,7 +45,6 @@ class AudioModule : public SinglePortModule, private concurrency::OSThread
|
||||
int encode_frame_num = 0;
|
||||
bool firstTime = true;
|
||||
|
||||
|
||||
virtual int32_t runOnce() override;
|
||||
|
||||
virtual MeshPacket *allocReply() override;
|
||||
|
||||
Reference in New Issue
Block a user