/// <summary> /// Update file and remove ID3V2 tag (if any); /// update file in-situ if possible, or rewrite the file to remove tag if necessary. /// </summary> public void UpdateNoV2tag() { if( Mp3FileData.UpdateNoV2tag() == MP3FileData.CacheDataState.eDirty ) { // clear the data object so it gets re-initialised next time it's needed _mp3FileData = null; } }
/// <summary> /// Update ID3V2 and V1 tags in-situ if possible, or rewrite the file to add tags if necessary. /// </summary> public void Update() { // cheeky optimisation: // if no changes have been made, nothing to do if( _mp3FileData != null ) { if( _mp3FileData.Update() == MP3FileData.CacheDataState.eDirty ) { // clear the data object so it gets re-initialised next time it's needed _mp3FileData = null; } } }