@@ -39,7 +39,7 @@ friend SnapProcessor;
39
39
40
40
// / Writes audio data to the queue
41
41
virtual size_t write (const uint8_t *data, size_t size) {
42
- ESP_LOGD (TAG, " %zu" , size);
42
+ ESP_LOGD (TAG, " >>> write: %zu" , size);
43
43
// only start to proces data after we received codec header
44
44
if (!is_audio_begin_called){
45
45
return 0 ;
@@ -144,6 +144,7 @@ friend SnapProcessor;
144
144
145
145
// / setup of all audio objects
146
146
bool audioBegin () {
147
+ ESP_LOGD (TAG, " >>> audioBegin" );
147
148
148
149
if (out == nullptr )
149
150
return false ;
@@ -173,7 +174,7 @@ friend SnapProcessor;
173
174
// set up timed stream
174
175
timed_stream.begin (audio_info);
175
176
176
- ESP_LOGD (TAG, " end " );
177
+ ESP_LOGD (TAG, " <<< audioBegin " );
177
178
is_audio_begin_called = true ;
178
179
return true ;
179
180
}
@@ -192,15 +193,15 @@ friend SnapProcessor;
192
193
}
193
194
194
195
void audioEnd () {
195
- ESP_LOGD (TAG, " start " );
196
+ ESP_LOGD (TAG, " >>> audioEnd " );
196
197
if (out == nullptr )
197
198
return ;
198
199
out->end ();
199
200
}
200
201
201
202
// writes the audio data to the decoder
202
203
size_t audioWrite (const void *src, size_t size) {
203
- ESP_LOGD (TAG, " %zu" , size);
204
+ ESP_LOGD (TAG, " >>> audioWrite: %zu" , size);
204
205
size_t result = decoder_stream.write ((const uint8_t *)src, size);
205
206
206
207
return result;
0 commit comments