We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[mp3File setTitle:@"囧"]; [mp3File setArtist:@"aa"]; [mp3File setAlbum:@"aa"]; [mp3File setLyrics:@"aa"];
[mp3File setArtwork:image isPNG:false]; [mp3File writeTag];
The text was updated successfully, but these errors were encountered:
fix;
(NSArray*)createFrame:(NSArray*)frame withContent:(NSString*)str { NSMutableArray *bytes = [[NSMutableArray alloc] initWithArray:frame]; const char *strPtr = [str cStringUsingEncoding:NSUTF16StringEncoding];
NSMutableArray *content = [[NSMutableArray alloc] init];
// Move past the padding in the beginning of the string while(*strPtr == '\0') { strPtr++; }
// Add padding to beginning [content addObject:@((uint8)1)]; //此处要修改(ISO-8859-1) = 1, (Unicode) = 1
// Copy the string to a new buffer while(strPtr != '\0') { [content addObject:@((strPtr++))]; }
// Add padding to end character [content addObject:@((uint8)0)];
NSMutableArray *sizeArr = [Toolbox toByteArray:(uint32)content.count]; [sizeArr removeObjectAtIndex:0];
// Create the frame [bytes addObjectsFromArray:sizeArr]; [bytes addObjectsFromArray:content];
return bytes; }
Sorry, something went wrong.
No branches or pull requests
[mp3File setTitle:@"囧"];
[mp3File setArtist:@"aa"];
[mp3File setAlbum:@"aa"];
[mp3File setLyrics:@"aa"];
[mp3File setArtwork:image isPNG:false];
[mp3File writeTag];
The text was updated successfully, but these errors were encountered: