Rockbox open source high quality audio player as a Music Player Daemon
mpris rockbox mpd libadwaita audio rust zig deno
2
fork

Configure Feed

Select the types of activity you want to include in your feed.

Rockbox does not support encrypted ADX. Clearly state this in the manual and the debug messages.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31094 a1c6a512-1295-4272-9138-f99709370657

+17 -5
+8 -2
apps/codecs/adx.c
··· 149 149 /* Get loop data */ 150 150 151 151 looping = 0; start_adr = 0; end_adr = 0; 152 - if (!memcmp(buf+0x10,"\x01\xF4\x03\x00",4)) { 152 + if (!memcmp(buf+0x10,"\x01\xF4\x03",3)) { 153 153 /* Soul Calibur 2 style (type 03) */ 154 154 DEBUGF("ADX: type 03 found\n"); 155 155 /* check if header is too small for loop data */ ··· 171 171 (buf[0x1f]) 172 172 )/32*channels*18+chanstart; 173 173 } 174 - } else if (!memcmp(buf+0x10,"\x01\xF4\x04\x00",4)) { 174 + } else if (!memcmp(buf+0x10,"\x01\xF4\x04",3)) { 175 175 /* Standard (type 04) */ 176 176 DEBUGF("ADX: type 04 found\n"); 177 177 /* check if header is too small for loop data */ ··· 195 195 } else { 196 196 DEBUGF("ADX: error, couldn't determine ADX type\n"); 197 197 return CODEC_ERROR; 198 + } 199 + 200 + /* is file using encryption */ 201 + if (buf[0x13]==0x08) { 202 + DEBUGF("ADX: error, encrypted ADX not supported\n"); 203 + return false; 198 204 } 199 205 200 206 if (looping) {
+8 -2
apps/metadata/adx.c
··· 73 73 id3->filesize = filesize(fd); 74 74 75 75 /* get loop info */ 76 - if (!memcmp(buf+0x10,"\x01\xF4\x03\x00",4)) { 76 + if (!memcmp(buf+0x10,"\x01\xF4\x03",3)) { 77 77 /* Soul Calibur 2 style (type 03) */ 78 78 DEBUGF("get_adx_metadata: type 03 found\n"); 79 79 /* check if header is too small for loop data */ ··· 83 83 end_adr = get_long_be(&buf[0x28]); 84 84 start_adr = get_long_be(&buf[0x1c])/32*channels*18+chanstart; 85 85 } 86 - } else if (!memcmp(buf+0x10,"\x01\xF4\x04\x00",4)) { 86 + } else if (!memcmp(buf+0x10,"\x01\xF4\x04",3)) { 87 87 /* Standard (type 04) */ 88 88 DEBUGF("get_adx_metadata: type 04 found\n"); 89 89 /* check if header is too small for loop data */ ··· 95 95 } 96 96 } else { 97 97 DEBUGF("get_adx_metadata: error, couldn't determine ADX type\n"); 98 + return false; 99 + } 100 + 101 + /* is file using encryption */ 102 + if (buf[0x13]==0x08) { 103 + DEBUGF("get_adx_metadata: error, encrypted ADX not supported\n"); 98 104 return false; 99 105 } 100 106
+1 -1
manual/appendix/file_formats.tex
··· 114 114 & Supports downmixing for playback of 5.1 streams in stereo\\ 115 115 ADX 116 116 & \fname{.adx} 117 - & \\ 117 + & Encrypted ADX is not supported.\\ 118 118 Advanced Audio Coding 119 119 & \fname{.m4a}, \fname{.m4b}, \fname{.mp4}, \fname{.rm}, \fname{.ra}, \fname{.rmvb} 120 120 \nopt{clipv1,c200v2}{