/// <summary> /// rewrite the file and ID3V2 and V1 tags with no padding. /// </summary> public void UpdatePacked() { if( Mp3FileData.UpdatePacked() == 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; } } }