Skip to content

Commit 207e23d

Browse files
committed
HELIX_PRINT
1 parent 811ff6b commit 207e23d

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

src/AACDecoderHelix.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ class AACDecoderHelix : public CommonHelix {
2121
public:
2222
AACDecoderHelix() = default;
2323

24-
#ifdef ARDUINO
24+
#if defined(ARDUINO) || defined(HELIX_PRINT)
2525
AACDecoderHelix(Print &output){
2626
this->out = &output;
2727
}
@@ -160,7 +160,7 @@ class AACDecoderHelix : public CommonHelix {
160160
if (info.sampRateOut!=aacFrameInfo.sampRateOut && infoCallback!=nullptr){
161161
infoCallback(info, p_caller_info);
162162
}
163-
#ifdef ARDUINO
163+
#if defined(ARDUINO) || defined(HELIX_PRINT)
164164
int sampleSize = info.bitsPerSample / 8;
165165
out->write((uint8_t*)pcm_buffer, info.outputSamps*sampleSize);
166166
#endif

src/CommonHelix.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#pragma once
22

3-
#ifdef ARDUINO
3+
#if defined(ARDUINO) || defined(HELIX_PRINT)
44
# include "Arduino.h"
55
#else
66
// remove delay statment if used outside of arduino
@@ -60,7 +60,7 @@ class CommonHelix {
6060
}
6161
}
6262

63-
#ifdef ARDUINO
63+
#if defined(ARDUINO) || defined(HELIX_PRINT)
6464
void setOutput(Print &output){
6565
this->out = &output;
6666
}
@@ -213,7 +213,7 @@ class CommonHelix {
213213
uint64_t time_last_result=0;
214214

215215

216-
#ifdef ARDUINO
216+
#if defined(ARDUINO) || defined(HELIX_PRINT)
217217
Print *out = nullptr;
218218
#endif
219219

src/MP3DecoderHelix.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ class MP3DecoderHelix : public CommonHelix {
2929
this->mp3_type = MP3Normal;
3030
}
3131

32-
#ifdef ARDUINO
32+
#if defined(ARDUINO) || defined(HELIX_PRINT)
3333
MP3DecoderHelix(Print &output, MP3Type mp3Type=MP3Normal){
3434
this->out = &output;
3535
this->mp3_type = mp3Type;
@@ -175,7 +175,7 @@ class MP3DecoderHelix : public CommonHelix {
175175
if (info.samprate!=mp3FrameInfo.samprate && infoCallback!=nullptr){
176176
infoCallback(info, p_caller_info);
177177
}
178-
#ifdef ARDUINO
178+
#if defined(ARDUINO) || defined(HELIX_PRINT)
179179
int sampleSize = info.bitsPerSample / 8;
180180
out->write((uint8_t*)pcm_buffer, info.outputSamps*sampleSize);
181181
#endif

0 commit comments

Comments
 (0)