@@ -59,7 +59,7 @@ class DecoderHelix : public AudioDecoder {
59
59
size_t write (const void *data, size_t len) {
60
60
LOGD (" %s: %zu" , LOG_METHOD, len);
61
61
if (p_decoder == nullptr ) {
62
- setupDecoder ((const char *)data);
62
+ setupDecoder ((const byte *)data);
63
63
p_decoder->begin ();
64
64
}
65
65
return p_decoder->write (data, len);
@@ -79,14 +79,14 @@ class DecoderHelix : public AudioDecoder {
79
79
AudioBaseInfo noInfo;
80
80
81
81
// / Defines the decoder based on the audio format
82
- void setupDecoder (const char *start) {
82
+ void setupDecoder (const byte *start) {
83
83
if (start[0 ] == 0xFF && start[1 ] == 0xF1 ) {
84
84
p_decoder = new AACDecoderHelix ();
85
85
LOGI (" using AACDecoderHelix" );
86
- } else if (start[0 ] == 0xFF || start[0 ] == 0xFE || strncmp (" ID3" , start, 3 )==0 ) {
86
+ } else if (start[0 ] == 0xFF || start[0 ] == 0xFE || strncmp (" ID3" , ( const char *) start, 3 )==0 ) {
87
87
p_decoder = new MP3DecoderHelix ();
88
88
LOGI (" using MP3DecoderHelix" );
89
- } else if (strncmp (" RIFF" , start, 4 )==0 ) {
89
+ } else if (strncmp (" RIFF" , ( const char *) start, 4 )==0 ) {
90
90
p_decoder = new WAVDecoder ();
91
91
LOGI (" using WAVDecoder" );
92
92
}
0 commit comments