Skip to content

Commit 295ab29

Browse files
committed
debug
1 parent 8b3d89a commit 295ab29

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

src/api/SnapOutput.h

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ friend SnapProcessor;
3939

4040
/// Writes audio data to the queue
4141
virtual size_t write(const uint8_t *data, size_t size) {
42-
ESP_LOGD(TAG, "%zu", size);
42+
ESP_LOGD(TAG, ">>> write: %zu", size);
4343
// only start to proces data after we received codec header
4444
if (!is_audio_begin_called){
4545
return 0;
@@ -144,6 +144,7 @@ friend SnapProcessor;
144144

145145
/// setup of all audio objects
146146
bool audioBegin() {
147+
ESP_LOGD(TAG, ">>> audioBegin");
147148

148149
if (out == nullptr)
149150
return false;
@@ -173,7 +174,7 @@ friend SnapProcessor;
173174
// set up timed stream
174175
timed_stream.begin(audio_info);
175176

176-
ESP_LOGD(TAG, "end");
177+
ESP_LOGD(TAG, "<<< audioBegin");
177178
is_audio_begin_called = true;
178179
return true;
179180
}
@@ -192,15 +193,15 @@ friend SnapProcessor;
192193
}
193194

194195
void audioEnd() {
195-
ESP_LOGD(TAG, "start");
196+
ESP_LOGD(TAG, ">>> audioEnd");
196197
if (out == nullptr)
197198
return;
198199
out->end();
199200
}
200201

201202
// writes the audio data to the decoder
202203
size_t audioWrite(const void *src, size_t size) {
203-
ESP_LOGD(TAG, "%zu", size);
204+
ESP_LOGD(TAG, ">>> audioWrite: %zu", size);
204205
size_t result = decoder_stream.write((const uint8_t *)src, size);
205206

206207
return result;

src/api/SnapProcessor.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ class SnapProcessor {
2424
}
2525

2626
virtual bool begin() {
27+
ESP_LOGD(TAG, ">>> begin");
2728
bool result = false;
2829
if (output_start) {
2930
result = audioBegin();

0 commit comments

Comments
 (0)