@@ -135,7 +135,7 @@ class EncodedAudioOutput : public ModifyingOutput {
135
135
136
136
// / Starts the processing - sets the status to active
137
137
bool begin () override {
138
- #if USE_AUDIO_LOGGING
138
+ #if USE_AUDIO_LOGGING && !defined(USE_IDF_LOGGER)
139
139
custom_log_level.set ();
140
140
#endif
141
141
TRACED ();
@@ -150,7 +150,7 @@ class EncodedAudioOutput : public ModifyingOutput {
150
150
LOGW (" no decoder or encoder defined" );
151
151
}
152
152
}
153
- #if USE_AUDIO_LOGGING
153
+ #if USE_AUDIO_LOGGING && !defined(USE_IDF_LOGGER)
154
154
custom_log_level.reset ();
155
155
#endif
156
156
return active;
@@ -164,14 +164,14 @@ class EncodedAudioOutput : public ModifyingOutput {
164
164
165
165
// / Ends the processing
166
166
void end () override {
167
- #if USE_AUDIO_LOGGING
167
+ #if USE_AUDIO_LOGGING && !defined(USE_IDF_LOGGER)
168
168
custom_log_level.set ();
169
169
#endif
170
170
TRACEI ();
171
171
decoder_ptr->end ();
172
172
encoder_ptr->end ();
173
173
active = false ;
174
- #if USE_AUDIO_LOGGING
174
+ #if USE_AUDIO_LOGGING && !defined(USE_IDF_LOGGER)
175
175
custom_log_level.reset ();
176
176
#endif
177
177
}
@@ -182,7 +182,7 @@ class EncodedAudioOutput : public ModifyingOutput {
182
182
// LOGI("write: %d", 0);
183
183
return 0 ;
184
184
}
185
- #if USE_AUDIO_LOGGING
185
+ #if USE_AUDIO_LOGGING && !defined(USE_IDF_LOGGER)
186
186
custom_log_level.set ();
187
187
#endif
188
188
LOGD (" EncodedAudioOutput::write: %d" , (int )len);
@@ -198,7 +198,7 @@ class EncodedAudioOutput : public ModifyingOutput {
198
198
199
199
size_t result = writer_ptr->write (data, len);
200
200
LOGD (" EncodedAudioOutput::write: %d -> %d" , (int )len, (int )result);
201
- #if USE_AUDIO_LOGGING
201
+ #if USE_AUDIO_LOGGING && !defined(USE_IDF_LOGGER)
202
202
custom_log_level.reset ();
203
203
#endif
204
204
return result;
@@ -218,7 +218,7 @@ class EncodedAudioOutput : public ModifyingOutput {
218
218
// / Provides the initialized encoder
219
219
AudioEncoder &encoder () { return *encoder_ptr; }
220
220
221
- #if USE_AUDIO_LOGGING
221
+ #if USE_AUDIO_LOGGING && !defined(USE_IDF_LOGGER)
222
222
// / Defines the class specific custom log level
223
223
void setLogLevel (AudioLogger::LogLevel level) { custom_log_level.set (level); }
224
224
#endif
@@ -236,7 +236,7 @@ class EncodedAudioOutput : public ModifyingOutput {
236
236
Print *ptr_out = nullptr ;
237
237
bool active = false ;
238
238
bool check_available_for_write = false ;
239
- #if USE_AUDIO_LOGGING
239
+ #if USE_AUDIO_LOGGING && !defined(USE_IDF_LOGGER)
240
240
CustomLogLevel custom_log_level;
241
241
#endif
242
242
int frame_size = DEFAULT_BUFFER_SIZE;
@@ -376,7 +376,7 @@ class EncodedAudioStream : public ReformatBaseStream {
376
376
float getByteFactor () { return byte_factor; }
377
377
void setByteFactor (float factor) {byte_factor = factor;}
378
378
379
- #if USE_AUDIO_LOGGING
379
+ #if USE_AUDIO_LOGGING && !defined(USE_IDF_LOGGER)
380
380
// / Defines the class specific custom log level
381
381
void setLogLevel (AudioLogger::LogLevel level) { enc_out.setLogLevel (level); }
382
382
#endif
0 commit comments