@@ -135,7 +135,7 @@ class EncodedAudioOutput : public ModifyingOutput {
135135
136136 // / Starts the processing - sets the status to active
137137 bool begin () override {
138- #if USE_AUDIO_LOGGING
138+ #if USE_AUDIO_LOGGING && !defined(USE_IDF_LOGGER)
139139 custom_log_level.set ();
140140#endif
141141 TRACED ();
@@ -150,7 +150,7 @@ class EncodedAudioOutput : public ModifyingOutput {
150150 LOGW (" no decoder or encoder defined" );
151151 }
152152 }
153- #if USE_AUDIO_LOGGING
153+ #if USE_AUDIO_LOGGING && !defined(USE_IDF_LOGGER)
154154 custom_log_level.reset ();
155155#endif
156156 return active;
@@ -164,14 +164,14 @@ class EncodedAudioOutput : public ModifyingOutput {
164164
165165 // / Ends the processing
166166 void end () override {
167- #if USE_AUDIO_LOGGING
167+ #if USE_AUDIO_LOGGING && !defined(USE_IDF_LOGGER)
168168 custom_log_level.set ();
169169#endif
170170 TRACEI ();
171171 decoder_ptr->end ();
172172 encoder_ptr->end ();
173173 active = false ;
174- #if USE_AUDIO_LOGGING
174+ #if USE_AUDIO_LOGGING && !defined(USE_IDF_LOGGER)
175175 custom_log_level.reset ();
176176#endif
177177 }
@@ -182,7 +182,7 @@ class EncodedAudioOutput : public ModifyingOutput {
182182 // LOGI("write: %d", 0);
183183 return 0 ;
184184 }
185- #if USE_AUDIO_LOGGING
185+ #if USE_AUDIO_LOGGING && !defined(USE_IDF_LOGGER)
186186 custom_log_level.set ();
187187#endif
188188 LOGD (" EncodedAudioOutput::write: %d" , (int )len);
@@ -198,7 +198,7 @@ class EncodedAudioOutput : public ModifyingOutput {
198198
199199 size_t result = writer_ptr->write (data, len);
200200 LOGD (" EncodedAudioOutput::write: %d -> %d" , (int )len, (int )result);
201- #if USE_AUDIO_LOGGING
201+ #if USE_AUDIO_LOGGING && !defined(USE_IDF_LOGGER)
202202 custom_log_level.reset ();
203203#endif
204204 return result;
@@ -218,7 +218,7 @@ class EncodedAudioOutput : public ModifyingOutput {
218218 // / Provides the initialized encoder
219219 AudioEncoder &encoder () { return *encoder_ptr; }
220220
221- #if USE_AUDIO_LOGGING
221+ #if USE_AUDIO_LOGGING && !defined(USE_IDF_LOGGER)
222222 // / Defines the class specific custom log level
223223 void setLogLevel (AudioLogger::LogLevel level) { custom_log_level.set (level); }
224224#endif
@@ -236,7 +236,7 @@ class EncodedAudioOutput : public ModifyingOutput {
236236 Print *ptr_out = nullptr ;
237237 bool active = false ;
238238 bool check_available_for_write = false ;
239- #if USE_AUDIO_LOGGING
239+ #if USE_AUDIO_LOGGING && !defined(USE_IDF_LOGGER)
240240 CustomLogLevel custom_log_level;
241241#endif
242242 int frame_size = DEFAULT_BUFFER_SIZE;
@@ -376,7 +376,7 @@ class EncodedAudioStream : public ReformatBaseStream {
376376 float getByteFactor () { return byte_factor; }
377377 void setByteFactor (float factor) {byte_factor = factor;}
378378
379- #if USE_AUDIO_LOGGING
379+ #if USE_AUDIO_LOGGING && !defined(USE_IDF_LOGGER)
380380 // / Defines the class specific custom log level
381381 void setLogLevel (AudioLogger::LogLevel level) { enc_out.setLogLevel (level); }
382382#endif
0 commit comments