Skip to content

Commit b0463a5

Browse files
committed
Resize ID3 metadata data
1 parent 748876c commit b0463a5

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

src/AudioTools/CoreAudio/AudioMetaData/MetaDataID3.h

+10
Original file line numberDiff line numberDiff line change
@@ -382,6 +382,11 @@ class MetaDataID3V2 : public MetaDataID3Base {
382382
return tag_processed;
383383
}
384384

385+
/// Change the default max metadata size (256)
386+
void resize(int size){
387+
result.resize(size);
388+
}
389+
385390
protected:
386391
ID3v2 tagv2;
387392
bool tag_active = false;
@@ -586,6 +591,11 @@ class MetaDataID3 : public AbstractMetaData {
586591
return len;
587592
}
588593

594+
/// Change the default max metadata size vof id3v2 (256)
595+
void resize(int size){
596+
id3v2.resize(size);
597+
}
598+
589599
protected:
590600
MetaDataID3V1 id3v1;
591601
MetaDataID3V2 id3v2;

src/AudioTools/CoreAudio/AudioPlayer.h

+5
Original file line numberDiff line numberDiff line change
@@ -448,6 +448,11 @@ class AudioPlayer : public AudioInfoSupport, public VolumeSupport {
448448

449449
bool isAutoFade() { return is_auto_fade; }
450450

451+
/// Change the default ID3 max metadata size (256)
452+
void resizeMetaData(int size){
453+
meta_out.resize(size);
454+
}
455+
451456
protected:
452457
bool active = false;
453458
bool autonext = true;

0 commit comments

Comments
 (0)