TagsLibrary_Save() will first try to save the tag format that was loaded. If there was no tag loaded, the second try is to detect the audio file format and decide the tag type(s) to save from that. Then the file extension is examined.
If you use 'ttAutomatic' for WAV files an ID3v2 and a WAV tags will both be saved. Is you specify a format explicitly then that format will be saved only.
To explicitly save the tags with a particular format use:
or to save only WAV tags:
If you use 'ttAutomatic' for WAV files, an ID3v2 and a WAV tags will both be saved.
Note that cover art is only supported for ID3v2.
You can also save both tags indiviudaly by calling 2 saves one after the other:
Then you can be sure both tags will exist in the file.
Check the TTags.SaveToFile() in TagsLibrary.pas line 2345 on how the save function works.