File tree Expand file tree Collapse file tree 3 files changed +7
-7
lines changed Expand file tree Collapse file tree 3 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ class AACDecoderHelix : public CommonHelix {
21
21
public:
22
22
AACDecoderHelix () = default ;
23
23
24
- #ifdef ARDUINO
24
+ #if defined( ARDUINO) || defined(HELIX_PRINT)
25
25
AACDecoderHelix (Print &output){
26
26
this ->out = &output;
27
27
}
@@ -160,7 +160,7 @@ class AACDecoderHelix : public CommonHelix {
160
160
if (info.sampRateOut !=aacFrameInfo.sampRateOut && infoCallback!=nullptr ){
161
161
infoCallback (info, p_caller_info);
162
162
}
163
- #ifdef ARDUINO
163
+ #if defined( ARDUINO) || defined(HELIX_PRINT)
164
164
int sampleSize = info.bitsPerSample / 8 ;
165
165
out->write ((uint8_t *)pcm_buffer, info.outputSamps *sampleSize);
166
166
#endif
Original file line number Diff line number Diff line change 1
1
#pragma once
2
2
3
- #ifdef ARDUINO
3
+ #if defined( ARDUINO) || defined(HELIX_PRINT)
4
4
# include " Arduino.h"
5
5
#else
6
6
// remove delay statment if used outside of arduino
@@ -60,7 +60,7 @@ class CommonHelix {
60
60
}
61
61
}
62
62
63
- #ifdef ARDUINO
63
+ #if defined( ARDUINO) || defined(HELIX_PRINT)
64
64
void setOutput (Print &output){
65
65
this ->out = &output;
66
66
}
@@ -213,7 +213,7 @@ class CommonHelix {
213
213
uint64_t time_last_result=0 ;
214
214
215
215
216
- #ifdef ARDUINO
216
+ #if defined( ARDUINO) || defined(HELIX_PRINT)
217
217
Print *out = nullptr ;
218
218
#endif
219
219
Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ class MP3DecoderHelix : public CommonHelix {
29
29
this ->mp3_type = MP3Normal;
30
30
}
31
31
32
- #ifdef ARDUINO
32
+ #if defined( ARDUINO) || defined(HELIX_PRINT)
33
33
MP3DecoderHelix (Print &output, MP3Type mp3Type=MP3Normal){
34
34
this ->out = &output;
35
35
this ->mp3_type = mp3Type;
@@ -175,7 +175,7 @@ class MP3DecoderHelix : public CommonHelix {
175
175
if (info.samprate !=mp3FrameInfo.samprate && infoCallback!=nullptr ){
176
176
infoCallback (info, p_caller_info);
177
177
}
178
- #ifdef ARDUINO
178
+ #if defined( ARDUINO) || defined(HELIX_PRINT)
179
179
int sampleSize = info.bitsPerSample / 8 ;
180
180
out->write ((uint8_t *)pcm_buffer, info.outputSamps *sampleSize);
181
181
#endif
You can’t perform that action at this time.
0 commit comments