--- libgig/trunk/ChangeLog 2021/06/19 10:55:04 3959 +++ libgig/trunk/ChangeLog 2021/07/19 14:26:16 3976 @@ -65,6 +65,20 @@ Instrument::IsScriptPatchVariableSet(size_t,String). - Changed signature of method Instrument::GetScriptPatchVariables(int) to Instrument::GetScriptPatchVariables(size_t). + - Changed signature of method + Instrument::GetScriptPatchVariable(int,String) to + Instrument::GetScriptPatchVariable(size_t,String). + - Changed signature of method + Instrument::SetScriptPatchVariable(int,String,String) to + Instrument::SetScriptPatchVariable(size_t,String,String). + - Changed signature of method + Instrument::UnsetScriptPatchVariable(int,String) to + Instrument::UnsetScriptPatchVariable(ssize_t,String). + - Fixed iterator invalidation (i.e. crash) caused by adding / removing + samples (only triggered if now deprecated File::GetFirstSample() / + File::GetNextSample() methods were still used). + - Fixed Sample::Write() method not having updated sample's CRC (correctly) + if sample was previously resized. * src/SF.cpp, src/SF.h: - File::DeleteInstrument(): Fix clang sanatizer warning. @@ -90,6 +104,13 @@ - Added method File::GetInstrument(). - Marked methods File::GetFirstInstrument() and File::GetNextInstrument() as deprecated. + - Added method Instrument::CountRegions(). + - Fixed iterator invalidation (i.e. crash) caused by adding / removing + samples (only triggered if now deprecated File::GetFirstSample() / + File::GetNextSample() methods were still used). + - Fixed iterator invalidation (i.e. crash) caused by adding / removing / + moving regions (only triggered if now deprecated File::GetFirstRegion() / + File::GetNextRegion() methods were still used). * src/RIFF.cpp, src/RIFF.h: - Chunk::LoadChunkData(): Fix clang sanatizer warning.