update to 1.9.1
This commit is contained in:
@@ -1069,17 +1069,13 @@ void Esp32Music::PlayAudioStream()
|
||||
packet.payload.resize(pcm_size_bytes);
|
||||
memcpy(packet.payload.data(), final_pcm_data, pcm_size_bytes);
|
||||
|
||||
if (final_pcm_data_fft == nullptr)
|
||||
if (final_pcm_data_fft != nullptr)
|
||||
{
|
||||
final_pcm_data_fft = (int16_t *)heap_caps_malloc(
|
||||
final_sample_count * sizeof(int16_t),
|
||||
MALLOC_CAP_SPIRAM);
|
||||
heap_caps_free(final_pcm_data_fft);
|
||||
}
|
||||
|
||||
memcpy(
|
||||
final_pcm_data_fft,
|
||||
final_pcm_data,
|
||||
final_sample_count * sizeof(int16_t));
|
||||
final_pcm_data_fft = (int16_t *)heap_caps_malloc(
|
||||
final_sample_count * sizeof(int16_t),
|
||||
MALLOC_CAP_SPIRAM);
|
||||
|
||||
ESP_LOGD(TAG, "Sending %d PCM samples (%d bytes, rate=%d, channels=%d->1) to Application",
|
||||
final_sample_count, pcm_size_bytes, mp3_frame_info_.samprate, mp3_frame_info_.nChans);
|
||||
|
||||
@@ -26,7 +26,7 @@
|
||||
#define VOLUME_UP_BUTTON_GPIO GPIO_NUM_NC
|
||||
#define VOLUME_DOWN_BUTTON_GPIO GPIO_NUM_NC
|
||||
|
||||
#ifdef CONFIG_LCD_ST7789
|
||||
#ifdef CONFIG_ESP32S3_KORVO2_V3_LCD_ST7789
|
||||
#define DISPLAY_SDA_PIN GPIO_NUM_NC
|
||||
#define DISPLAY_SCL_PIN GPIO_NUM_NC
|
||||
#define DISPLAY_WIDTH 280
|
||||
@@ -40,7 +40,7 @@
|
||||
#define DISPLAY_OFFSET_Y 0
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_LCD_ILI9341
|
||||
#ifdef CONFIG_ESP32S3_KORVO2_V3_LCD_ILI9341
|
||||
#define LCD_TYPE_ILI9341_SERIAL
|
||||
#define DISPLAY_SDA_PIN GPIO_NUM_NC
|
||||
#define DISPLAY_SCL_PIN GPIO_NUM_NC
|
||||
@@ -78,4 +78,4 @@
|
||||
#define CAMERA_PIN_PCLK 11
|
||||
|
||||
#define XCLK_FREQ_HZ 20000000
|
||||
#endif // _BOARD_CONFIG_H_
|
||||
#endif // _BOARD_CONFIG_H_
|
||||
@@ -3,7 +3,6 @@
|
||||
#include "lcd_display.h"
|
||||
|
||||
#include <vector>
|
||||
#include <font_awesome_symbols.h>
|
||||
#include <esp_log.h>
|
||||
#include <esp_err.h>
|
||||
#include <esp_lvgl_port.h>
|
||||
|
||||
Reference in New Issue
Block a user