MCPcopy Create free account
hub / github.com/complexlogic/rsgain / tag_write

Function tag_write

src/tag.cpp:586–598  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

584}
585
586static void tag_write(TagLib::ID3v2::Tag *tag, const ScanResult &result, const Config &config)
587{
588 const RGTagsArray &RG_STRING = config.lowercase ? RG_STRING_LOWER : RG_STRING_UPPER;
589 write_rg_tags(result,
590 config,
591 [&](RGTag rg_tag, const TagLib::String &value) {
592 auto frame = new TagLib::ID3v2::UserTextIdentificationFrame();
593 frame->setDescription(RG_STRING[static_cast<size_t>(rg_tag)]);
594 frame->setText(value);
595 tag->addFrame(frame);
596 }
597 );
598}
599
600template<typename T>
601static void tag_clear(TagLib::Ogg::XiphComment *tag)

Callers 5

tag_mp3Function · 0.85
tag_mp4Function · 0.85
tag_apev2Function · 0.85
tag_wmaFunction · 0.85
tag_riffFunction · 0.85

Calls 2

write_rg_tagsFunction · 0.85
formatFunction · 0.85

Tested by

no test coverage detected