Skip to content

Commit a719138

Browse files
committed
Compilation error with latest version 3.3.2j #1096
1 parent 488d39b commit a719138

File tree

4 files changed

+12
-5
lines changed

4 files changed

+12
-5
lines changed

src/Audio.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
audio.cpp
44
55
Created on: Oct 28.2018 */char audioI2SVers[] ="\
6-
Version 3.3.2j ";
7-
/* Updated on: Jul 03.2025
6+
Version 3.3.2k ";
7+
/* Updated on: Jul 08.2025
88
99
Author: Wolle (schreibfaul1)
1010
Audio library for ESP32, ESP32-S3 or ESP32-P4
@@ -73,14 +73,14 @@ void AUDIO_ERROR_IMPL(const char* path, int line, const char* fmt, Args&&... arg
7373
if (total_len <= 0) return;
7474
final.alloc(total_len + 1, "final");
7575
char* dest = final.get();
76-
if (!dest) return; // Or error treatment
76+
if (!dest) return; // or error treatment
7777
if(audio_info){
7878
std::snprintf(dest, total_len + 1, "%s:%d:" ANSI_ESC_RED " %s" ANSI_ESC_RESET, file.c_get(), line, dst);
7979
audio_info(final.get());
8080
}
8181
else{
82-
std::snprintf(dest, total_len + 1, "%s:%d: %s", file.c_get(), line, dst);
83-
log_e("%s", final.c_get());
82+
std::snprintf(dest, total_len + 1, "%s:%d: %s", file.c_get(), line, dst);
83+
log_e("%s", final.c_get());
8484
}
8585
final.reset();
8686
result.reset();

src/mp3_decoder/mp3_decoder.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
#include "../psram_unique_ptr.hpp"
66
#include "assert.h"
77

8+
extern __attribute__((weak)) void audio_info(const char*);
9+
810
static const uint8_t m_HUFF_PAIRTABS =32;
911
static const uint8_t m_BLOCK_SIZE =18;
1012
static const uint8_t m_NBANDS =32;

src/opus_decoder/opus_decoder.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
#include <vector>
99
#include "../psram_unique_ptr.hpp"
1010

11+
extern __attribute__((weak)) void audio_info(const char*);
12+
1113
typedef struct _ofp2 {
1214
uint16_t firstFrameLength;
1315
uint16_t secondFrameLength;

src/vorbis_decoder/vorbis_decoder.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@
2626
#include "Arduino.h"
2727
#include <vector>
2828
#include "../psram_unique_ptr.hpp"
29+
30+
extern __attribute__((weak)) void audio_info(const char*);
31+
2932
using namespace std;
3033
#define VI_FLOORB 2
3134
#define VIF_POSIT 63

0 commit comments

Comments
 (0)