C#C
C#2y ago
14 replies
BigBoyConst

✅ Editing audio file metadata with TagLib Sharp

Hey there! I'm trying to make a program that streamlines the process of editing file metadata for my music while also giving me a chance to learn something, and I'm running into this problem when I want to set the artist of the track:

The way it's stored in TagLib is using a property TagLib.File.Tag.Performers, which is an array of strings. It's initialized to be of length zero, which makes sense, but when I try to set it to a new nonempty array of strings, it just doesn't work, which then leads me to getting an IndexOutOfRangeException when I inevitably want to set the first value in that array.

I may be making a very very stupid mistake but nonetheless I thought i'd ask.

I don't want to post my code unless someone asks because it's actual programming gore and I know it. Thanks in advance!
Was this page helpful?