| @@ 191-201 (lines=11) @@ | ||
| 188 | } |
|
| 189 | const flagsFirstByte = header[8] |
|
| 190 | const flagsSecondByte = header[9] |
|
| 191 | if(ID3Version === 3) { |
|
| 192 | return { |
|
| 193 | tagAlterPreservation: !!(flagsFirstByte & 128), |
|
| 194 | fileAlterPreservation: !!(flagsFirstByte & 64), |
|
| 195 | readOnly: !!(flagsFirstByte & 32), |
|
| 196 | compression: !!(flagsSecondByte & 128), |
|
| 197 | encryption: !!(flagsSecondByte & 64), |
|
| 198 | groupingIdentity: !!(flagsSecondByte & 32), |
|
| 199 | dataLengthIndicator: !!(flagsSecondByte & 128) |
|
| 200 | } |
|
| 201 | } |
|
| 202 | if(ID3Version === 4) { |
|
| 203 | return { |
|
| 204 | tagAlterPreservation: !!(flagsFirstByte & 64), |
|
| @@ 174-181 (lines=8) @@ | ||
| 171 | experimentalIndicator: !!(flagsByte & 32) |
|
| 172 | } |
|
| 173 | } |
|
| 174 | if(version === 4) { |
|
| 175 | return { |
|
| 176 | unsynchronisation: !!(flagsByte & 128), |
|
| 177 | extendedHeader: !!(flagsByte & 64), |
|
| 178 | experimentalIndicator: !!(flagsByte & 32), |
|
| 179 | footerPresent: !!(flagsByte & 16) |
|
| 180 | } |
|
| 181 | } |
|
| 182 | return {} |
|
| 183 | } |
|
| 184 | ||