unfortunately, this does not bring me any further. When I execute the code, after the following section, the variable custom is null. There is no error thrown:
var tfile = TagLib.File.Create(@"C:\My song.wav");
var custom = (TagLib.Ogg.XiphComment) tfile.GetTag(TagLib.TagTypes.Xiph);
However. Later, when trying to add or remove a tag, a NullReferenceException is thrown, stating that custom == null:
custom.SetField("Geolocation", new string[] { this.Latitude.ToString(), this.Longitude.ToString() }) ;
So for normal tags such as title, artist etc, the library works fine.
I am in dare need for custom fields. I have looked at the readme example which states the following code:
unfortunately, this does not bring me any further. When I execute the code, after the following section, the variable
custom
is null. There is no error thrown:However. Later, when trying to add or remove a tag, a NullReferenceException is thrown, stating that
custom == null
: